Software Developer

How To Run a WinSCP script from Windows Command Line

You’ve written your WinSCP script, but now you need to run it from your Windows computer. It only involves 2 lines.

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

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

By

We've One Response

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]