Differences
This shows you the differences between the selected revisions of the page.
2022-06-21 | 2022-08-12 | ||
windows 11 + updating instructions for windows 10 (martin) | guide_automation#generating + single line (martin) | ||
Line 25: | Line 25: | ||
* In //Add arguments// add appropriate WinSCP [[commandline#scripting|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). | * In //Add arguments// add appropriate WinSCP [[commandline#scripting|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). | ||
* You should also add ''[[commandline#logging|/log]]'' parameter to turn on [[logging|session logging to file]]. | * You should also add ''[[commandline#logging|/log]]'' parameter to turn on [[logging|session logging to file]]. | ||
- | * The resulting arguments may look like: \\ ''%%/log=c:\path\winscp.log /command "open sftp://user:password@example.com/" "put d:\examplefile.txt /home/user/" "exit"%%'' \\ Note that the command-line parameter ''[[commandline#scripting|/console]]'' was not specified, which makes ''WinSCP.exe'' not show the console window, so as not to disturb you while you are using your workstation. \\ You can have WinSCP [[ui_generateurl|generate the command-line template]] for you. | + | * The resulting arguments may look like (as a single line): \\ ''%%/log=c:\path\winscp.log /command "open sftp://user:password@example.com/" "put d:\examplefile.txt /home/user/" "exit"%%'' \\ Note that the command-line parameter ''[[commandline#scripting|/console]]'' was not specified, which makes ''WinSCP.exe'' not show the console window, so as not to disturb you while you are using your workstation. \\ You can have WinSCP [[guide_automation#generating|generate the command-line template]] for you. |
* If your script uses local paths relative to the script path or WinSCP executable path, specify the respective path in //Start in// field. | * If your script uses local paths relative to the script path or WinSCP executable path, specify the respective path in //Start in// field. | ||
* When done, click //Next//, review your options and confirm with //Finish//. | * When done, click //Next//, review your options and confirm with //Finish//. | ||
Line 35: | Line 35: | ||
* In advanced properties add appropriate WinSCP [[commandline#scripting|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). | * In advanced properties add appropriate WinSCP [[commandline#scripting|command-line]] parameters to execute the [[scripting#commands|scripting commands]] you need (typically you will use ''/script'' or ''/command'' parameters). | ||
* You should also add ''[[commandline#logging|/log]]'' parameter to turn on [[logging|session logging to file]]. | * You should also add ''[[commandline#logging|/log]]'' parameter to turn on [[logging|session logging to file]]. | ||
- | * The resulting command may look like: \\ ''%%"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=c:\path\winscp.log /command "open sftp://user:password@example.com/" "put d:\examplefile.txt /home/user/" "exit"%%'' &winpath &win64 \\ Note that the command-line parameter ''[[commandline#scripting|/console]]'' was not specified, what makes ''WinSCP.exe'' not show the console window, not to disturb you while you are using your workstation. \\ You can have WinSCP [[ui_generateurl|generate the command-line template]] for you. | + | * The resulting command may look like (as a single line): \\ ''%%"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=c:\path\winscp.log /command "open sftp://user:password@example.com/" "put d:\examplefile.txt /home/user/" "exit"%%'' &winpath &win64 \\ Note that the command-line parameter ''[[commandline#scripting|/console]]'' was not specified, what makes ''WinSCP.exe'' not show the console window, not to disturb you while you are using your workstation. \\ You can have WinSCP [[guide_automation#generating|generate the command-line template]] for you. |
* If your script uses local paths relative to the script path or WinSCP executable path, specify the respective path in //Start in// field. | * If your script uses local paths relative to the script path or WinSCP executable path, specify the respective path in //Start in// field. | ||