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 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 “” 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.) /script=C:\myscripts\YOUR_SCRIPT_FILE.txt

See more: ,


We've 2 Responses

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: