You’ve written your WinSCP script, but now you need to run it from your Windows computer. It only involves 2 lines.
- In your Windows Command Line, go to the directory where the winscp.com file resides on your computer.
For example:
cd c:\Program Files\WinSCP
Or, it could be:
cd c:\Program Files (x86)\WinSCP
Or, whatever the path happens to be on your system.
- Now that your are in the proper directory which contains the “winscp.com” file, type this command to execute your script (be sure to change “
C:\myscripts\YOUR_SCRIPT_FILE.txt
” to your own path to your script.)winscp.com /script=C:\myscripts\YOUR_SCRIPT_FILE.txt
Leim Jing Jie
February 20th, 2019 at 10:23 pm
Your tutorial is even clearer than winscp website.
Thanks for your guidance 🙂
johnny tayona
August 22nd, 2019 at 5:41 am
very simple and understandable. my script executes! thanks!