But Chris, is this not a DOS forum as well as an exchange forum? I mean, every good Windows app needs to be controlled by DOS commands. I am sure I read that in the fine print somewhere. Gee, if some people would search the archives (I keep all of my exchange.org e-mails), there is so much information to be found. For example, I posted complete batch files to do similar processes to what Mr Van Singel wants some time back. I charge $100 per hour to support people who are having problems with exchange. Anyone want to tip some $$s into my coffers for the suggestions that I have made here, that have likely saved them $100's in support costs? Stephen Hartley NetAbility Brisbane, Australia -----Original Message----- From: Chris Nielsen [mailto:cnielsen@xxxxxxxxxxxxxxx] Sent: Wednesday, June 18, 2003 7:36 AM To: [ExchangeList] Subject: [exchangelist] RE: Reboot file http://www.MSExchange.org/ With any batch file or executable if you simply pass it a parameter you can essentially have two programs within it and run one or the other based on the command line parameters you pass it. Inside of a DOS batch file you would use something like this: ------------------------------------ IF %1 == A GOTO A . [all your first time run code here] [create reg key under RUN or RUNONCE that calls "mybatchfile.bat A"] END :A [All your second time run code here] ------------------------------------ The actual syntax there may be off, but I'm not going to spend the time looking up DOS syntax on the net when you can do that yourself very easily. Others have already given you nearly every step of what you would need to do for the other aspects of this Now, do you have any questions about Exchange we can help you with? Chris Nielsen Systems Administrator New Dawn Technologies ------------------------------------------------------ List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ ------------------------------------------------------ Other Internet Software Marketing Sites: Leading Network Software Directory: http://www.serverfiles.com No.1 ISA Server Resource Site: http://www.isaserver.org Windows Security Resource Site: http://www.windowsecurity.com/ Network Security Library: http://www.secinf.net/ Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com ------------------------------------------------------ You are currently subscribed to this MSExchange.org Discussion List as: exchlist@xxxxxxxxxxxxxxxxx To unsubscribe send a blank email to $subst('Email.Unsub')