fs.copy from virtual directory
Posted on 2012-03-20
I have a problem copying a file from one folder to another using the file system fs.copy.
As part of an asp upload I need to manipulate some files but when I try to do the following :
fs.CopyFile "c:\Inetpub\wwwroot\PLC_PROGRAMS\" & filename,"c:\Inetpub\wwwroot\PLC_BACKUP\"
I get a permission denied error. If I change the address to let's say :
fs.CopyFile "c:\uploads\PLC_PROGRAMS\" & filename,"c:\uploads\PLC_BACKUP\"
then the code has no problems whatsoever.
All the permissions are set and enabled for the above virtual directory yet I still have the error. Any help would be appreciated.