If that's a possibility, or if you need to upload to different folders, you'll have to create a list for each folder you want to upload so you can change folders between each group. The files can be from different folders, but will all be uploaded to the same folder on the FTP server so there must not be any duplicate names. Use that list to upload the files, then run Xcopy again to update your local backup folder with the files that were uploaded. Or if you are keeping a local backup copy, you can first run Xcopy to generate a list of files that will be copied to your local folder. Doing date math in batch is lengthy but can be done. You can use it to generate a list of files that have changed since a specified date like yesterday. You can't run Xcopy against existing files on a remote server over an FTP connection.
0 Comments
Leave a Reply. |