Batch file is not running!

Advertisement

ajinkya
Joined:
Posts:
1
Location:
india

Batch file is not running!

I have one batch file in windows which running perfectly when i run it using cmd,
here's the script:
"cd D:\Auto_Backup"
"C:\Program Files (x86)\WinSCP\WinSCP.com "
"open 180.179.170.117"
"cd /Auto_backup"
"lcd D:\Auto_Backup"
"get test.txt"
but when i convert it into batch file it stops on step one
it stops here->
winscp>
no further processing
how to debug this?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,505
Location:
Prague, Czechia

Re: Batch file is not running!

We need to see the batch file.

It should look like:

"cd D:\Auto_Backup" 
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^
    "open 180.179.170.117" ^
    "cd /Auto_backup" ^
    "lcd D:\Auto_Backup" ^
    "get test.txt" ^
    "exit"

Reply with quote

Advertisement

You can post new topics in this forum