Topic "Problem with connection"

Author Message
clientvoip
[View user's profile]

Joined: 2006-12-11
Posts: 4
Hi,

I have written my first script, but he doesn't work correctly.
The script run on Windows XP PC, I want connect to remote machine (with Fedora 5.0)

The script is:
option batch on
option confirm off
open root@IP_addr_Fedora_machine
pwd
ls
close
exit

From an open console windows, I write
winscp3.com /console /C:\Document and Setting\user\Desktop\script=scriptSCP3.scp

The script ask me user name, I specified it and the output is

HOST DOESN NOT EXIST

Could someone help me?

Thanks in advance
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
clientvoip wrote:
winscp3.com /console /C:\Document and Setting\user\Desktop\script=scriptSCP3.scp

This looks strange. Should it be:
Code:
winscp3.com /console /script=C:\Document and Setting\user\Desktop\scriptSCP3.scp
chessys

Guest


I am also being asked for a "user name" when using the /command line. Here is my batch file...

option batch on
option confirm off
open name@host.com
cd /home/exportfiles/
option transfer binary
put D:\*
exit

Here is my command line...

"C:\Program Files\WinSCP3\WinSCP3.com" /console /script= D:\Exportfiles.txt

The open command is set for a stored session however I tried to use the name:password@host option with the same results. I'm successfully using a similiar batch file but using the "get" command instead of "put" and with the same saved session.

Thanks in advance for assistance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
chessys wrote:
I am also being asked for a "user name" when using the /command line. Here is my batch file...

option batch on
option confirm off
open name@host.com
cd /home/exportfiles/
option transfer binary
put D:\*
exit

Here is my command line...

"C:\Program Files\WinSCP3\WinSCP3.com" /console /script= D:\Exportfiles.txt

The open command is set for a stored session however I tried to use the name:password@host option with the same results. I'm successfully using a similiar batch file but using the "get" command instead of "put" and with the same saved session.

Thanks in advance for assistance.

So with "get" you are not prompted for password?
_________________
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