Differences
This shows you the differences between the selected revisions of the page.
2023-10-04 | 2023-10-27 | ||
Restored revision 1677569794. Undoing revision 1696429012. (martin) (hidden) | no summary (83.111.180.100) (hidden) (untrusted) | ||
Line 56: | Line 56: | ||
* The [[ui_generateurl#script|Generate transfer code]] dialog will appear with the generated script or code template. | * The [[ui_generateurl#script|Generate transfer code]] dialog will appear with the generated script or code template. | ||
- | ===== [[using]] Using script ===== | + | /log=D:\test\winscp.log |
- | Now to make using script easier/automatic you can: | + | Option Echo off |
- | ··* Make shortcut to it on desktop to ease execution. Either make shortcut to batch file (''.bat'') or enter full command line to shortcut itself.((Note that it is not possible to use ''winscp.com'' (''.com'' files in general) directly from a shortcut. Call ''winscp.com'' from a batch file or use ''winscp.exe'' with ''[[commandline#scripting|/console]]'' command-line parameter.)) | + | option batch on |
- | * If the wrapping batch file takes filename as command line parameter (see [[#parametrized|below]]) you can: | + | option confirm off |
- | ····* Make shortcut to it on desktop and use it by dropping files on the icon. Windows automatically run the batch file and passes path to dropped file as command-line parameter. | + | open SFTP://SASNB:Welcome123476*@sftypprd1 |
- | * In a similar way you can put the shortcut to the batch file into Explorer’s ‘Send To’ context menu (''C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo'' in Windows Vista and newer). &winpath &winvista | + | #Change LOCAL directory lcd "L:\SNBUAESwift\pull\" |
- | * [[guide_schedule|Schedule automatic execution]]. | + | lcd "L:\SNBUAESwift\pull\" |
+ | |||
+ | #copy an individual file | ||
+ | |||
+ | put -nopermissions -nopreservetime "L:\SNBUAESwift\pull\.*rje" | ||
===== Notes ===== | ===== Notes ===== |