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.
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.)