First off, I am still fairly new to VBscript and am seeking help.
I think I have seen some nfo on this forum before, but couldn't find it again. No matter what I try, I always receive "Permission Denied" on the last line of my script when attempting to deleting a file. I checked Microsoft's site, but none of the fixes worked and most deal with ASP. The script is running under an admin account on the server (Win 2000) and the permissions on the files are default, nothing special. This seems like it should be sooooo simple and it's driving me crazy!! Here is an example of my code - thanks in advance for any information provided.
Set objFSO = CreateObject("Scripting.FileSystemObject"
objFSO.DeleteFile("E:\Folder\subfolder\*.unv"
objFSO.DeleteFile("E:\Folder2\subfolder\*.rep"
In this example, I would reveive the error message "800A0046" on line "3."
I think I have seen some nfo on this forum before, but couldn't find it again. No matter what I try, I always receive "Permission Denied" on the last line of my script when attempting to deleting a file. I checked Microsoft's site, but none of the fixes worked and most deal with ASP. The script is running under an admin account on the server (Win 2000) and the permissions on the files are default, nothing special. This seems like it should be sooooo simple and it's driving me crazy!! Here is an example of my code - thanks in advance for any information provided.
Set objFSO = CreateObject("Scripting.FileSystemObject"
objFSO.DeleteFile("E:\Folder\subfolder\*.unv"
objFSO.DeleteFile("E:\Folder2\subfolder\*.rep"
In this example, I would reveive the error message "800A0046" on line "3."