Hi folks. Much thanks to everyone that has helped me so far. I'm learning alot and finding out that I need to learn more!
Anyways, I'm trying to use Wscript.Shell or Exec to use the copy command to copy a file from a unc path to a local drive. Unfortunately, it is not working. When I use the copy command on its own outside of the script to accomplish the same task, I have no problems. What am I missing? Here is how it looks
As usual, I really appreciate any help or insight any one can give me.
Thanks.
Errol
Anyways, I'm trying to use Wscript.Shell or Exec to use the copy command to copy a file from a unc path to a local drive. Unfortunately, it is not working. When I use the copy command on its own outside of the script to accomplish the same task, I have no problems. What am I missing? Here is how it looks
Code:
set shell = CreateObject("Wscript.Shell")
set fso = CreateObject("Scripting.FileSystemObject")
shell.Run("copy \\dfiint-flsvr\data\SAVTools\UNINSTALL\AV32.exe C:\")
if not fso.FileExists("C:\AV32.exe") then
Wscript.Echo "The uninstall file is missing"
end if
As usual, I really appreciate any help or insight any one can give me.
Thanks.
Errol