I have a script that moves a file from 1 location to another then deletes the file from the folder the file was moved from.
The copy\move works but when it hits the line to delete the file i get an error thrown:
I have set the folder to full rights (set to everyone with full permission) and also the the file itself but i still getr the error.
heres the code
' Move the text file to "Processed" by first copying across and then deleting from "ConvertXML" Folder
strFile = strPath & "\ConvertXML\" & strName
If FSO.FolderExists(strPath & "\ConvertXML\Processed\") Then
FSO.CopyFile strFile, strPath & "\ConvertXML\Processed\",True
'This next line fails with 'Permission denied'
FSO.DeleteFile (strPath & "\ConvertXML\" & strName), DeleteReadOnly