Topic " is not a valid win32 application"

Author Message


Trying to script a transfer using a batch file. This is the contents of the bat file:
"C:\Program Files (x86)\WinSCP\" /script="mobwscp.txt" > "moblog.txt"

The OS returns: C:\Program Files (x86)\WinSCP\ is not a valid win32 application

Yet I can execute "C:\Program Files (x86)\WinSCP\" from the same cmd session where I am attempting the bat.
OS is Win Server 2008 R2.
I checked permissions on full control.

I believe UAC is off.

any ideas?
[View user's profile]

Joined: 2016-12-08
Posts: 52
Location: MSK-RU
I think you have to provide more details like which version you use?
Did you install WinSCP under the user you trying to run in?
What you get when try to run from Start cmd.exe /K "C:\Program Files (x86)\WinSCP\"


We found the issue - had to reinstall WinSCP using change user /install.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License