Batch file needs to be run as administrator to work
Hi guys,
When I run my batch script, the cmd window opens & closes. It doesn't download the files.
But when I type the same commands in a command line (Without admin privileges), it executes successfully. And also, when I run the batch file as administrator, it works.
Can someone point me what I am doing wrong? Following is my simple script,
winscp.com /command ^
"open ftp://xxxx:pw@mysite.com/" ^
"option confirm off" ^
"get xpress.zip" ^
"put C:\Boodles\xpress.zip" ^
"get xpress_qb.zip" ^
"put C:\Boodles\xpress_qb.zip" ^
"exit"
When I run my batch script, the cmd window opens & closes. It doesn't download the files.
But when I type the same commands in a command line (Without admin privileges), it executes successfully. And also, when I run the batch file as administrator, it works.
Can someone point me what I am doing wrong? Following is my simple script,
winscp.com /command ^
"open ftp://xxxx:pw@mysite.com/" ^
"option confirm off" ^
"get xpress.zip" ^
"put C:\Boodles\xpress.zip" ^
"get xpress_qb.zip" ^
"put C:\Boodles\xpress_qb.zip" ^
"exit"