Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: bill
I use psftp in batch mode for uploading certain files to different subdirs each day.
Task Scheduler runs every 5 minutes to detect if there are new files, if there are, psftp batch kicks in and uploads the files from different subdirs.
I have 4 directories, with 4 further subdirectories underneath each. Sometimes I want to upload lots of files in dira/subdirb and so on, therefore my original batch method is not effective.
So here's how I get around that.
The dir structure on the server is identical to the windows structure
All you have to do is to us PKZIP / WINZIP to zip the dir and subdirs then just ftp the ZIP file.
This has two advantages, 1) the subdirs are intact - you can have 1000's of files in different dirs, 2) the upload will be a lot quicker and it's easier for dropouts.
On the server, all you need to do then is to gunzip / untar but I use Linux version of PKZIP.
Of course, the other beauty is that if your subdirs has 1000's of files, but not all of them change each day, then you set the ZIP prog to just include 'changed' files.