Topic "winscp syntax help"

Author Message
rookie19
[View user's profile]

Joined: 2012-10-22
Posts: 2
Can you tell me what I am doing wrong? The code below is not working:

"E:\Program Files\WinSCP\WinSCP.exe"

option batch on
option confirm off

open username@xxx.edu
cd /cygdrive/E/vol1/dev
put e:\Reporting\dir\test_report.txt
close

exit
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Sorry, your post does not include enough information.

Please read how to troubleshoot problems with WinSCP. If it turns out that you are not able to help yourself, read how to ask for support or report bugs efficiently, so others can help you.
_________________
Martin Prikryl
rookie19
[View user's profile]

Joined: 2012-10-22
Posts: 2
More information:

How can I combine two .bat files into one?

1. I have a .bat file that has the following syntax:
"E:\Program Files\WinSCP\WinSCP.exe" /script=E:\test folder\test_file.txt

2. The next file is the test_file.txt that has the following syntax:
option batch on
option confirm off

open user@xxx.xx
cd /cygdrive/E/some directory
put e:\some directory\some file*
close

exit

I want to combine the syntax from both files instead of having to run the .bat file that calls to the test_file.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You can use /command instead of /script to provide your script commands to WinSCP as command-line arguments rather than via script file.
https://winscp.net/eng/docs/scripting#using_scripting
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License