Differences
This shows you the differences between the selected revisions of the page.
2012-03-24 | 2012-03-24 | ||
no summary (90.230.133.18) | reverting most changes, no explanation given for using winscp.com instead of winscp.exe, general hint for debugging script does not belong to this guide (martin) | ||
Line 17: | Line 17: | ||
* Choose when the task should be run and click //Next//. | * Choose when the task should be run and click //Next//. | ||
* For task action, select //Start a program// and client //Next//. | * For task action, select //Start a program// and client //Next//. | ||
- | * Browse for ''WinSCP.com'' [[executable]]. | + | * Browse for ''WinSCP.exe'' [[executable]]. |
- | * In //Add arguments// add appropriate WinSCP [[commandline|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script or ''/command'' parameters). \\ The resulting arguments may look like: ''·%%·/command "option batch abort" "option confirm off" "open user:password@example.com" "put d:\examplefile.txt /home/user/" "exit"·%% '' | + | * In //Add arguments// add appropriate WinSCP [[commandline|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). \\ The resulting arguments may look like: \\ ''%%/command "option batch abort" "option confirm off" "open user:password@example.com" "put d:\examplefile.txt /home/user/" "exit"%%'' \\ Note that the command-line parameter ''/console'' was not specified, what makes ''WinSCP.exe'' not show the console window, not to disturb you while you are using your workstation. |
* You may want to use ''/log'' parameter to turn on [[logging|session logging to file]]. | * You may want to use ''/log'' parameter to turn on [[logging|session logging to file]]. | ||
* When done, click //Next//, review your options and confirm with //Finish//. | * When done, click //Next//, review your options and confirm with //Finish//. | ||
- | |||
- | If something does not work, and you want to debug, you can do it like this: Go to //Windows Start Menu > Run// . And then type ''cmd'' and hit //Enter//. Then you type something like ''C:\some program folder\WinSCP\WinSCP.exe /console'' , and hit //Enter//. Now you can test one single command at a time. First you usually want to test // open user:password@example.com //. And then perhaps // put d:\examplefile.txt /home/user/ //. And see what happens, and not. | ||
- | |||
- | |||
===== Scheduling on Windows XP and Earlier ===== | ===== Scheduling on Windows XP and Earlier ===== | ||
To add new scheduled task: | To add new scheduled task: | ||
* Go to //Windows Start Menu > Settings > Control Panel > Scheduled Tasks > Add Scheduled Task//. | * Go to //Windows Start Menu > Settings > Control Panel > Scheduled Tasks > Add Scheduled Task//. | ||
- | * Browse for ''WinSCP.com'' [[executable]], and setup other task properties (like period of execution). | + | * Browse for ''WinSCP.exe'' [[executable]], and setup other task properties (like period of execution). |
- | * In advanced properties add appropriate WinSCP [[commandline|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). \\ The resulting command may look like: ''·%%·"C:\Program Files\WinSCP\WinSCP.com" /command "option batch abort" "option confirm off" "open user:password@example.com" "put d:\examplefile.txt /home/user/" "exit"·%% '' | + | * In advanced properties add appropriate WinSCP [[commandline|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). \\ The resulting command may look like: \\ ''%%"C:\Program Files\WinSCP\WinSCP.exe" /command "option batch abort" "option confirm off" "open user:password@example.com" "put d:\examplefile.txt /home/user/" "exit"%%'' \\ Note that the command-line parameter ''/console'' was not specified, what makes ''WinSCP.exe'' not show the console window, not to disturb you while you are using your workstation. |
* You may want to use ''/log'' parameter to turn on [[logging|session logging to file]]. | * You may want to use ''/log'' parameter to turn on [[logging|session logging to file]]. | ||
- | |||
- | If something does not work, and you want to debug, you can do it like this: Go to //Windows Start Menu > Run// . And then type ''cmd'' and hit //Enter//. Then you type ''C:\Program Files\WinSCP\WinSCP.exe /console'' , and hit //Enter//. Now you can test one single command at the time. First you usually want to test // open user:password@example.com //. And then perhaps // put d:\examplefile.txt /home/user/ //. And see what happens, and not. | ||
- | |||
===== Further Reading ===== | ===== Further Reading ===== |