Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Wireless  |  Forums   | Site Map | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |              



How to run a program if existing a file name ms-mvps

Situation: We are planning to update one of old DOS program. What we want to do is if there is a file name called ms-mvps.txt under c:\chicagotech, then run m:\ms-mvps\runit.bat. How can we add  DOS commands in the program batch file to accomplish this task?


@echo off

if exist "c:\chicaotech\ms-mvps.txt" "m:\ms-mvps\runit.bat"

... Continue the processing.

Post your questions, comments, feedbacks and suggestions

Related Topics

How to collect username

Previous Page   Next Page




Hit Counter   This web is provided "AS IS" with no warranties.
Copyright 2002-2015 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.