Print Page | Close Window

IIS (5) FTP Server

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3604
Printed Date: 29 March 2026 at 3:19pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: IIS (5) FTP Server
Posted By: Gary
Subject: IIS (5) FTP Server
Date Posted: 17 June 2003 at 9:09am

Is it possible to get IIS (or anything else) to run a batch (.bat) job once a specific file has been received by the FTP server?

Basically, an mdb is to be ftp'ed to my server every 2 hours or so. I cannot rely upon it having been updated at any particular time and therefore need to fire off an external batch as soon as the file had been received.




Replies:
Posted By: michael
Date Posted: 17 June 2003 at 10:35am
iis5 ftp is fairly limited, I don't know of any way to do what you ask. the iis6 ftp has been greatly imporved so it might be possible but am not sure. You might want to look into some other ftp server that have more functionality. I am sure it can all be done programatically but not an easy way I know of.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: the boss
Date Posted: 17 June 2003 at 1:33pm
make a .bat file which uses the FTP from command promtp to upload the file on the server.. then use the windows sheduled task to run this file every 2hours or so. if u have Cute FTP.. u can shedule FTP file upload within the program...


Posted By: michael
Date Posted: 17 June 2003 at 2:02pm
That would work if it is the other way around but it seems someone is sending him an ftp, so how does ftp execute a bat once the file is received.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Gary
Date Posted: 18 June 2003 at 2:08am

Michael is correct - I am not the person sending the file, it is being sent to me.

If IIS cannot accomplish this, is there some other method of detecting the receipt of the file? Maybe Win2000 OS could do something?

One way would be to have a small application poll the folder every 5 minutes or so, but I really would like to avoid that if possible.



Posted By: abhinav
Date Posted: 19 June 2003 at 4:42am
I'm not a IIS junkie, but you could try some plugins / addons for IIS if available.

-------------
http://www.sgkabra.com - Accountancy Firm | http://www.mp3oldies.com.ar - Mp3 Oldies | http://www.best-mp3software.com - Mp3 Software


Posted By: Mart
Date Posted: 19 June 2003 at 1:13pm
You can create IIS addons in VB6...


Posted By: Bluefrog
Date Posted: 20 June 2003 at 9:46am

I don't think that you can do it with IIS 5. (I don't know 6 yet though.)

What you could do is create a file to scan your FTP log files (counting lines would help reduce your load later), use the Windows scheduler to run it every so often, and when you get what you want, run another script to do what you need. Complicated, but...

You could do it in Perl or VB or whatever.

I don't know if you need it to be real time though. The above won't do that. Polling the folder with a compiled application would be more efficient then, but you'd still be stuck with what you mentioned above...

Alternatively, you could have an ASP form to do the upload, and then when it completes, you could fire off what you need to do.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net