Ciao
Dopo tanto cercare sto editando questo script:
Dim i, fso,fsb, cart, h1,f, f1, sf,BasePath, CalcResult, fNameArray()
BasePath = "E:\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(BasePath)
Set sf = f.SubFolders
For Each f1 in sf
CalcResult = DateDiff("d",f1.DateCreated,Now)
if CalcResult > 45 Then
ReDim preserve fNameArray(i)
fNameArray(i) = f1.Name
i = i + 1
end If
Next
For Each fName in fNameArray
FORFILES /S /P (BasePath & "\" & fName) /M *.sgi /D -60 /C "CMD /C del /q 0x22@FILE0x22
Next
Chiaramente non funziona, ma non riesco ad andare avanti.
Dove sbaglio??
Grazie anticipatamente