winscp.com is not a valid win32 application

Advertisement

Torin
Guest

winscp.com is not a valid win32 application

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?

Reply with quote

Advertisement

Makc666
Joined:
Posts:
50
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"

Reply with quote

user1
Guest

Re: /INSTALL

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: /INSTALL

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?

Reply with quote

Advertisement

You can post new topics in this forum