I'm trying to use the copyfile command as shown below.
- I keep getting an "Access Denied" Error.
- I'm not logged on as Administrator but I do have Admin rights to the box.
- The inputbox always me to cut and paste the exact command that the script would use into a command prompt. I run the output form the input box into a command prompt and it works fine.
==============SCRIPT====================
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject"
strCopySource = "\\SERVER01\Drivers$\Temp\test.txt"
strCopyDest = "\\SERVER02\O$\winnt\profiles\Administrator\Windows"
'inputbox "test","test", "Copy " & strCopySource & " " & strCopyDest
fso.CopyFile strCopySource, strCopyDest
===================End File============
Can anyone give me some ideas as to why this isn't working? Dave Namou, MCSE CCEA
- I keep getting an "Access Denied" Error.
- I'm not logged on as Administrator but I do have Admin rights to the box.
- The inputbox always me to cut and paste the exact command that the script would use into a command prompt. I run the output form the input box into a command prompt and it works fine.
==============SCRIPT====================
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject"
strCopySource = "\\SERVER01\Drivers$\Temp\test.txt"
strCopyDest = "\\SERVER02\O$\winnt\profiles\Administrator\Windows"
'inputbox "test","test", "Copy " & strCopySource & " " & strCopyDest
fso.CopyFile strCopySource, strCopyDest
===================End File============
Can anyone give me some ideas as to why this isn't working? Dave Namou, MCSE CCEA