Put -> File Path? (Batch)
Hello,
I need a script (batch) which uploads files from a local windows machine (2008 R2) to a FTP-Server.
"C:\Program Files (x86)\WinSCP\winscp.com" /command ^
"open sftp://ID:PW@SERVER.COM" ^
"put ""*.data""" ^
"exit"
I also tried it with a temppath, but that also didn't worked.
set TMPPATH=C:\tmp\temppath
"C:\Program Files (x86)\WinSCP\winscp.com" /command ^
"open sftp://ID:PW@SERVER.COM" ^
"put ""*.data"" ""TMPPATH""" ^
"exit"
Everytime the script can connect to the server but then it stops.
I can enter exit and then I get the error in the attached screenshots.
Do I have to enter the path where the files which I want to upload in the skript? If yes where or how can I enter the path?
Anyone can help me?
Thanks & Regards
I need a script (batch) which uploads files from a local windows machine (2008 R2) to a FTP-Server.
"C:\Program Files (x86)\WinSCP\winscp.com" /command ^
"open sftp://ID:PW@SERVER.COM" ^
"put ""*.data""" ^
"exit"
I also tried it with a temppath, but that also didn't worked.
set TMPPATH=C:\tmp\temppath
"C:\Program Files (x86)\WinSCP\winscp.com" /command ^
"open sftp://ID:PW@SERVER.COM" ^
"put ""*.data"" ""TMPPATH""" ^
"exit"
Everytime the script can connect to the server but then it stops.
I can enter exit and then I get the error in the attached screenshots.
Do I have to enter the path where the files which I want to upload in the skript? If yes where or how can I enter the path?
Anyone can help me?
Thanks & Regards