Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - IIS (5) FTP Server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IIS (5) FTP Server

 Post Reply Post Reply
Author
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Topic: IIS (5) FTP Server
    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.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
abhinav View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: India
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote abhinav Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2003 at 4:42am
I'm not a IIS junkie, but you could try some plugins / addons for IIS if available.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2003 at 1:13pm
You can create IIS addons in VB6...
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.