Author Topic: XP: Possible to auto-upload contents of a folder?  (Read 628 times)

0 Members and 1 Guest are viewing this topic.

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
XP: Possible to auto-upload contents of a folder?
« on: April 14, 2009, 04:06:23 PM »
Okay, here's the rub. We have an ERP system that publishes a CSV of different kids of data a couple times a day. It also LOOKS for data CSV's in a few folders. However, when it EXPORTS data, it can only do so to a client machine- Not to another server. Don't ask me why.

So what I'm trying to find out is: Is there a program out there that will allow me to say like, "Everytime export.csv shows up in this folder, FTP it to www.whatever.com"? What are my options in this regard?
wha

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: XP: Possible to auto-upload contents of a folder?
« Reply #1 on: April 14, 2009, 04:16:36 PM »
Okay, here's the rub. We have an ERP system that publishes a CSV of different kids of data a couple times a day. It also LOOKS for data CSV's in a few folders. However, when it EXPORTS data, it can only do so to a client machine- Not to another server. Don't ask me why.

So what I'm trying to find out is: Is there a program out there that will allow me to say like, "Everytime export.csv shows up in this folder, FTP it to www.whatever.com"? What are my options in this regard?

Thread is off to a sexy start.   :tauntaun
:)

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: XP: Possible to auto-upload contents of a folder?
« Reply #2 on: April 14, 2009, 09:05:31 PM »
Well, the good news is that at the very least, this probably isn't all that hard to program if you need to. You could have a script run as a scheduled task on that folder once a minute, and then do the upload if the file(s) exist.
8=D

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: XP: Possible to auto-upload contents of a folder?
« Reply #3 on: April 14, 2009, 09:09:42 PM »
For instance:
http://www.unagibay.com/DesktopDefault.aspx?tabindex=1&tabid=100&itemid=1807

All you need is a bit of code above that to check if whatever.csv exists, or whatever your criteria is.

Note: Modify the run line to look like this:
objShell.Run "c:\winnt\system32\ftp.exe -s:ftpput.txt",0 ,True

And it'll run the ftp program without opening a window for it.
« Last Edit: April 14, 2009, 09:12:03 PM by Ecrofirt »
8=D