July 11th, 2012, 07:54 AM
Need help writing FTP script
I need some help scripting a FTP transfer that will happen 5 days a week. Here is the background:
We have a department that is scanning documents. The scanned images are placed in a folder, outside of the folder is an index file of the images. Here is the folder structure:
Scanned Images Folder(this folder is a different name every day)
Index file(the name of this file matches the name of the scanned images folder)
I need to FTP the scanned images folder and the index file. I am doing a basic .bat file script that calls WS_FTP Pro 12.
If I do -s local:\folder -d "destination" it actually will sent the folder, and everything in it. I don't want to send the folder itself, just what's in it.
If I do -s local:\folder\*.* -d"Destination" it will only send the index file.
Anyone have any ideas?
July 11th, 2012, 12:04 PM
I found a LOOONNGGG way around this. I'm using the synchronize files, with an exlusion of the .tmp file, to upload the folder, and then I upload the file after.