Hello, I am new to this stuff, and need to get a windows script file to run with admin priv.
I use a command file. .cmd to in invoke the .wsf file.
When I try to execute this, I get a permission denied. If I right click, run as administrator -- process works.
Is there a way I can get this to runas with admin priv.
Hope I entered this correctly.
Any help would be appreciated.
DIM strInputFolder, strOutputFolder
strInputFolder = "D:\MainFrameFTPFiles\terry.txt"
strOutputFolder = "D:\Dataloads\tja.txt"
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "D:\MainFrameFTPFiles\terry.txt" , "D:\Dataloads\tja.txt", OverwriteExisting
wscript.echo "VBS Script running"
wscript.echo "Input Folder =" & strInputFolder
wscript.echo "Output Folder =" & strOutputFolder