Topic "Cannot start WinSCP application"

Author Message
vallexa2
[View user's profile]

Joined: 2009-10-14
Posts: 1
I have the Winscp ver4.2.3 build 494 application and Windows XP Professional ver 2002 with SP2. When i try to start winscp.com (c:\winscp.com or c:\winscp or c:\winscp.com open or c:\winscp.com /script=syncftp.txt) from the command line on the screen the message "Cannot start WinScp application" is shown always. I need help (Excuse for my English).
Advertisements
Kintar

Guest


Yeah, I had this problem, too. I don't know if it's in the documentation somewhere and I just missed it, but I finally realized that the WinSCP.exe file has to be in the same directory as WinSCP.com.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
mmerlone

Guest


.. I was using 4.1.9 just fine without this error, this started occuring when upgraded for latest beta 4.2.4 (build 610). That beta was installed with the checkbox to make a full upgrade using previous versions, so something went wrong with the installer.
mmerlone
[View user's profile]

Joined: 2009-12-08
Posts: 3
Location: Curitiba , PR, Brasil
mmerlone wrote:
.. I was using 4.1.9 just fine without this error, this started occuring when upgraded for latest beta 4.2.4 (build 610). That beta was installed with the checkbox to make a full upgrade using previous versions, so something went wrong with the installer.


Oops... on "...upgrade using previous versions..." please read "...upgrade using previous options...". Sorry.

And yes, I have both winscp.xe and winscp.com on same folder, and still dont work.
apurva
[View user's profile]

Joined: 2009-10-06
Posts: 4
Can we have hyperlink to the article that says how this problem can be solved rather than the overal documentation

I don't plan to read the complete documentation of winscp at every minor release of it.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
mmerlone wrote:
And yes, I have both winscp.xe and winscp.com on same folder, and still dont work.

Can you run the winscp.exe?
What path are the file in?
what is you version of Windows?
_________________
Martin Prikryl
mmerlone
[View user's profile]

Joined: 2009-12-08
Posts: 3
Location: Curitiba , PR, Brasil
prikryl wrote:
mmerlone wrote:
And yes, I have both winscp.xe and winscp.com on same folder, and still dont work.

Can you run the winscp.exe?
What path are the file in?
what is you version of Windows?

Yes.
The non-beta were installed by next-next-finish mostly using defaults, checked to register on %PATH% (verified ok) and to handle sftp:// and scp:// addresses. Upgraded to beta doing a full upgrade (recommended), and both executables are on C:\Program Files\WinSCP.
It is a Windows 2008 Server Standard SP2 (not R2).
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
mmerlone wrote:
The non-beta were installed by next-next-finish mostly using defaults, checked to register on %PATH% (verified ok) and to handle sftp:// and scp:// addresses. Upgraded to beta doing a full upgrade (recommended), and both executables are on C:\Program Files\WinSCP.
It is a Windows 2008 Server Standard SP2 (not R2).

I've sent you an email with debug version.
_________________
Martin Prikryl
mmerlone
[View user's profile]

Joined: 2009-12-08
Posts: 3
Location: Curitiba , PR, Brasil
prikryl wrote:
mmerlone wrote:
The non-beta were installed by next-next-finish mostly using defaults, checked to register on %PATH% (verified ok) and to handle sftp:// and scp:// addresses. Upgraded to beta doing a full upgrade (recommended), and both executables are on C:\Program Files\WinSCP.
It is a Windows 2008 Server Standard SP2 (not R2).

I've sent you an email with debug version.


I've downloaded, extracted and overwrited the one installed on my server. That one works without a problem.
To shed some light on what I am doing, this is a MS-Sql server and I have to copy its dumps to a linux box where I have a tape driver to backup. On the MS-server, I have those scripts, which will be scheduled to run from the sql engine:

scp10.cmd:
Code:

f:
cd f:\mssql\
winscp.com /script=scp10.script
rem pause


scp10.script:
Code:

option batch on
option confirm off
open user@server.domain.tld
put F:\mssql\DBTeste_1000.bak
put F:\mssql\DBProducao_1000.bak
put F:\mssql\DBHomologacao_1000.bak
exit
CXT

Guest


I installed Winscp 4.2.5 fresh on a Windows 2008 R2 it will not run from the command line. I continue to get the "Cannot start the winscp application". I have tried removing and re-installing, but no luck at this point.
comj

Guest


If you launch a command prompt in Windows XP and enter "winscp.com" and hit enter you get "Cannot start WinSCP appliaction". No problem with exe, but it appears exe can't script like the com can.

I'm trying to follow http://winscp.net/eng/docs/guide_automation_advanced and it will not work because of this.
comj

Guest


...but I can double-click winscp.com within explorer and it runs just fine.
Holly Glaser
[View user's profile]

Joined: 2009-12-03
Posts: 6
Location: Seattle
Hello,

Winscp script error version 4.2.5.build 624
Problems
1. Windows cmd window does not recognize winscp
ex. C:> winscp.exe

'Winscp' is not recognized as an internal or external command,
operable program or batch file.

2. Winscp console does not open scripts using > winscp.exe /console /script= myscript.txt
>Unknown command 'winscp.exe'

Workaround:
This is not acceptable for end users
1. open install folder
2. double click on winscp.com to open console
3. type in each command manually

iam able to connect using the stored session and upload files etc, How can I run this as a scripot?
TIA Cool >
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
CXT wrote:
I installed Winscp 4.2.5 fresh on a Windows 2008 R2 it will not run from the command line. I continue to get the "Cannot start the winscp application". I have tried removing and re-installing, but no luck at this point.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
comj wrote:
If you launch a command prompt in Windows XP and enter "winscp.com" and hit enter you get "Cannot start WinSCP appliaction". No problem with exe, but it appears exe can't script like the com can.

You need to have winscp.exe in the same directory as winscp.com.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Holly Glaser wrote:
1. Windows cmd window does not recognize winscp
ex. C:> winscp.exe

'Winscp' is not recognized as an internal or external command,
operable program or batch file.

Well, I support you do not have winscp.exe in the PATH.

Quote:
2. Winscp console does not open scripts using > winscp.exe /console /script= myscript.txt
>Unknown command 'winscp.exe'

Why do you suppose this should work?
You need to run that command from Windows command line, not from WinSCP console.
_________________
Martin Prikryl
Holly Glaser
[View user's profile]

Joined: 2009-12-03
Posts: 6
Location: Seattle
Hello and thanks for the reply.
This is my first winscp script, and I am confused although I've been reading the docs.

I added winscp to the path(below)and it fixed my problem. As usual, there is now a different error and I am TIA for your advice.

from the windows cmd
C:\>winscp.exe This works to start the GUI

However,this does not open the winscp console
C:\>winscp.com
Cannot start WinSCP application.

My questions-
Can I start a script from the winscp console? Or is it only for writing scripts and manual commands?

Can I run a winscp script from the GUI?
This would be best for the user.

The revised Path:
%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\QuantumGIS\apps\gdal-16\bin;C:\QuantumGIS\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.2\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.2\emulator\bin;C:\Perl\site\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\QuantumGIS\apps\msys\bin;C:\QuantumGIS\apps\grass\grass-6.4.0svn\bin;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\WinSCP

Holly


prikryl wrote:
Holly Glaser wrote:
1. Windows cmd window does not recognize winscp
ex. C:> winscp.exe

'Winscp' is not recognized as an internal or external command,
operable program or batch file.

Well, I support you do not have winscp.exe in the PATH.

Quote:
2. Winscp console does not open scripts using > winscp.exe /console /script= myscript.txt
>Unknown command 'winscp.exe'

Why do you suppose this should work?
You need to run that command from Windows command line, not from WinSCP console.
DeadMoneyDan

Guest


I am getting this error as well. Just upgraded to 4.2.5 from 4.1.9 because my Windows 2008 servers were only intermittantly connecting to ftp sites. The sftp sites worked fine. The upgrade fixed this issue.

However when executing from the command line, I got the dreaded "Cannot start WinScp application" message. I worked around it using the following command before attempting to start WinSCP:

cd /d C:\Program Files (x86)\WinSCP

...even though C:\Program Files (x86)\WinSCP is in the path.

Mr. Prikryl, I have to disagree with you. This has nothing to do with Documentation. I is a bug. Evil or Very Mad
DeadMoneyDan

Guest


Changing the directory to C:\Program Files (x86)\WinSCP to run WinSCP.com works, yes, but breaks a lot of scripts.

I reverted to the 4.1.9 version of the com. It seems to work fine with the 4.2.5 exe and solves my problems. Idea
Holly Glaser
[View user's profile]

Joined: 2009-12-03
Posts: 6
Location: Seattle
Continuing to work on this problem
1. My 4.2.5 is installed in the C:\Program Files (x86)\WinSCP also.
2. On startup, there is an error message cannot find winscp/ocsetu~

Here is something strange--
Attempt to open a winscp script from windows cmd
C:\>winscp.exe /console /script="winscp_open_stored_session.txt"

The result is that a black window appears briefly and then goes away. probably the winscp.com window.

Hmmmmmmm. ideas?
Holly Cool

DeadMoneyDan wrote:
Changing the directory to C:\Program Files (x86)\WinSCP to run WinSCP.com works, yes, but breaks a lot of scripts.

I reverted to the 4.1.9 version of the com. It seems to work fine with the 4.2.5 exe and solves my problems. Idea
DeadMoneyDan

Guest


Holly,

Try using WinSCP.com not the .exe from the command line. If WinSCP won't start, refer to my last two posts.
comj

Guest


prikryl wrote:
You need to have winscp.exe in the same directory as winscp.com.


I'm using the default install and therefore I have both exe and com in same directory.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
DeadMoneyDan wrote:
Changing the directory to C:\Program Files (x86)\WinSCP to run WinSCP.com works, yes, but breaks a lot of scripts.

I reverted to the 4.1.9 version of the com. It seems to work fine with the 4.2.5 exe and solves my problems. Idea

OK, so if you use 4.2.5 exe and com, it does not work. But if you use 4.1.9 com and 4.2.5 exe in a same way it does work. Right? This is possibly related to 64-bit OS as I haven't seen the problem before.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
comj

Guest


I'm running this on 32-bit Windows XP and I'm experiencing the same issue as Holly....
Jivey

Guest


Upgraded to version 4.2.5.624
Can not find "Cannot start WinSCP application."

I have c:\program files\winscp\ in my path which has both winscp.com and winscp.exe

If I call winscp.com directly c:\program files\winscp\winscp.com it works Smile
If I call winscp.com from c:\ I get the error Sad
If I call winscp.com from c:\ and copy winscp.exe to the root of c:\ it works Smile

The issue is that when calling winscp.com it find it in the path, but only looks at the current directory for winscp.exe.

Suggestion - I do not have a fix, but if the developers used a unique environmental variable to point to winscp.exe that could fix the path issue.
danh

Guest


Same issue here, and it appears Jivey is right. It appears WinSCP.com only looks in its current directory for WinSCP.exe; it does not appear to search the PATH if WinSCP.exe isn't found.

I am a fresh evaluation install of 4.2.5 (Build 624)

The workaround is always specifying the path in the command. Either of these should work.

C:\Program Files\WinSCP\>WinSCP
or
C:\>"c:\Program Files\WinSCP\WinSCP.com"
phried319

Guest


danh wrote:
Same issue here, and it appears Jivey is right. It appears WinSCP.com only looks in its current directory for WinSCP.exe; it does not appear to search the PATH if WinSCP.exe isn't found.

I am a fresh evaluation install of 4.2.5 (Build 624)

The workaround is always specifying the path in the command. Either of these should work.

C:\Program Files\WinSCP\>WinSCP
or
C:\>"c:\Program Files\WinSCP\WinSCP.com"

That worked straight up cash money for me. THANKS!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
I wasn't able to reproduce this problem using any of the scenarios described here. So really need someone to help me with debugging. Otherwise I hardly fix this.

Can anyone (everyone) send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
tdalsimer@...

Guest


I also need the debug version of winscp as I am having the same problem

prikryl wrote:
I wasn't able to reproduce this problem using any of the scenarios described here. So really need someone to help me with debugging. Otherwise I hardly fix this.

Can anyone (everyone) send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Guest




I had this problem and I copied winscp.exe into the same directory that I was running my batch file from and now winscp.com works. Odd.



tdalsimer@gmail.com wrote:
I also need the debug version of winscp as I am having the same problem

prikryl wrote:
I wasn't able to reproduce this problem using any of the scenarios described here. So really need someone to help me with debugging. Otherwise I hardly fix this.

Can anyone (everyone) send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
dangdude
[View user's profile]

Joined: 2010-02-04
Posts: 1
Location: Missouri
just a note:
This is FIXED in 4.2.6, Feb 2010 -- see history for 4.2.6, Tracker Bug 542.

Thanks!!!
T_T

Guest


control panel>system>advanced system settings>environment variables>

under system variables>path - edit: add ";C:\Program Files\WinSCP"
Advertisements

You can post new topics in this forum






Search Site

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