Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: First connection in script is unsuccessful

Sorry, there's no better way.

Unless you switch to using WinSCP .NET assembly:
https://winscp.net/eng/docs/library
JRanone

Poor Man's Delay

PING -n 2 127.0.0.1>nul
JRanone

First connection in script is unsuccessful

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?