Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to perform some action (start a vbs, batch file, or an exe, etc) upon the successful upload of a file using Windows Server 2008 R2 built-in IIS FTP server/service?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, schedule a powershell script to scan the directory every 5 minutes.

share|improve this answer
    
What would such a script look like? Would you run this as a scheduled task or is there a way to have IIS fireoff a powershell when a file is uploaded? I'm not much of a powershell guru, but I've got a fair amount of programming background... –  Nate Mar 8 '10 at 19:26
    
i feel bad that i can't write the script for you but I would make the script do a simple task: 1. use getChildItem to get a list of files in the FTP location, sorted by newest to oldest 2. if newer files show up then increment a timestamp value in a cache file and then do your task. Schedule with windows task manager. (This could also be done with a old-school batch file as well, depending on what your doing) –  djangofan Mar 8 '10 at 19:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.