Topic "'Cannot open file' err msg when rung from command line"

Author Message
nexar
[View user's profile]

Joined: 2012-02-07
Posts: 3
I have the following simple script:

option batch abort
option confirm off
open pdgtt
put readme /home/purvez
exit

This is saved in a file called winscptest.txt and is sitting in the same directory where winscp.exe is saved. When I run the following command line from that directory I get an error message saying: 'Cannot open file winscptest.txt'

winscp.com /script=winscptest.txt

I have also tried the following command but the same effect:

winscp.com /script=.\winscptest.txt

I'm running winSCP ver 4.3.6 on windows xp.

Anybody got any ideas of what could be the problem here?

I can run winscp.exe with a stored_session name from the command line and that works although I have to manually enter a password. Seems like the stored session does not retain the password.

Thanks in advance for all help/advice.

Purvez
nexar
[View user's profile]

Joined: 2012-02-07
Posts: 3
Embarassed MEGA EMBARRASSED !! Can't spell. The file name was sitting as wnscptest.txt (without the 'i')!!

However some help regarding the non-saving of the password would still help.

SORRY ALL!!

Purvez
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
nexar wrote:
However some help regarding the non-saving of the password would still help.

Have you ticked Save password?
https://winscp.net/eng/docs/ui_login_save
_________________
Martin Prikryl
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