> Sorry for the OT post. I am trying to set up a secure > directory where I can run a couple of BAT files. > > I set up a script mapping in IIS for the BAT extension > to use c:\winnt\system32\cmd.exe. I disabled the "Script > Engine" option and tried running the file. I see the > CMD.exe process spawned but the BAT file does not seem > to execute and the browser eventually times out and does > not return a result. > > The directory has execute permissions. Any ideas what I > need to do to get this seemingly simply thing to work? > > BTW, I am trying to set this up so that I can remotely > restart some key services and processes on the server via > my PDA while camping this weekend. ;)
I don't think that's how you call batch files through IIS. It's been a while, but you can't just map an extension to any program at all; it has to be an ISAPI extension. I don't think you can use batch files as CGI scripts with IIS 4 or higher, actually. You can just write an ASP page to do what you want, though. Or, why not just call your batch file with CFEXECUTE? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

