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

TimU

Re: order of uploading files

@clt: You could either:

  1. Script it externally then call WinSCP with a known list of files to transfer.
  2. Run multiple WinSCP passes over your source directory, first transferring *.gpg, then *.chk.

Here's an extract of a Windows Batch script that will append file names to an existing SFTP Batch Script
DIR /a-d /b *.gpd %source.path% >%SFTP.batch.filelist%
DIR /a-d /b *.chk %source.path% >>%SFTP.batch.filelist%
 
:: If there are no files in the source directory to transfer, leave the script.
if errorlevel==1 (@ECHO Nothing To Do - Exiting Script)&(Goto