Topic "winscp.com is not a valid win32 application"

Author Message
Torin

Guest


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

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

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

I believe UAC is off.

any ideas?
Advertisements
Makc666
[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\winscp.com"
Torin

Guest


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

Guest


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



What does ' - had to reinstall WinSCP using change user /install' mean?

I checked the installation command line options and I do not see this. I've gotten this error a few times and each time reinstalling fixed the problem. this is good but I need to make sure it doesn't happen again.
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
user1 wrote:
I checked the installation command line options and I do not see this. I've gotten this error a few times and each time reinstalling fixed the problem. this is good but I need to make sure it doesn't happen again.

Did you make a copy of winscp.exe before reinstallation?
Advertisements

You can post new topics in this forum

Search

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License