#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    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:

    Folder:
    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?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo