Hi.
I'm using an activex script task to loop thru all the
files in a given folder and do some processing. I'm having
issues when the file is empty(size = 0) and I can't
deleted from dts(vbscript).
Here is my code:
Set oFolder = oFSO.GetFolder(sPath)
Set oFileCollection = oFolder.Files
For Each oFile in oFileCollection
sString = oFile.name
if oFile.Size = 0 then
testrz = "\\Athena\Clarify_Imports\" & sString
if (oFso.FileExists(testrz)) then
oFso.DeleteFile(testrz)
end if
end if
Next
'The deleteFile is NOT WORKING..is not deleting a file..
'If you have any ideas please let me know
'I also try the move method to move the file to an
archive 'directoy but it doesn't either..
'I have permissions for the folder..the process works if
the file has data !! PLease Help!! RZ