Topic "First connection in script is unsuccessful"

Author Message
JRanone
[View user's profile]

Joined: 2012-12-13
Posts: 2
Location: Oklahoma, USA
I have numerous vendors requiring the same information from our facility (hospital) and have combined all of the vendor connections into one script file. The Script opens the connection, navigates the remote directories, uploads the files then disconnects and connects with the next vendor and repeats the process. However, the cd commands on first vendor connection fail more often than they're successful, causing the upload to fail. Is there a command I can use to insert a time delay into the script between opening the connection and navigating the directories, or will I have to use the poor man's delay I found in a response in the forums?
JRanone
[View user's profile]

Joined: 2012-12-13
Posts: 2
Location: Oklahoma, USA
PING -n 2 127.0.0.1>nul
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Sorry, there's no better way.

Unless you switch to using WinSCP .NET assembly:
http://winscp.net/eng/docs/library
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