Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!ed.leslie From: ed.leslie@canremote.uucp (ED LESLIE) Newsgroups: comp.sys.ibm.pc Subject: Re: Data-path checker Message-ID: <90021021121253@masnet.uucp> Date: 10 Feb 90 23:57:00 GMT Organization: Canada Remote Systems Limited, Mississauga, ON, Canada Lines: 24 dalw@vax87.aud.auc.dk writes: dk>I need a program to check wether a certain data-path exists or not. Following is a fragment of a batch file which I just made up and tried. Works OK, and should give you the general direction to work on. -------------starts--------------- set target=c:\wpfiles if exist %target%\*.* goto ok echo files not found goto end :ok echo files were found :end -------------ends------------------- The test for *.* could of course be modified to test for an individual file which you know must be there, or several lines could be used to test for more than one file. Anyway, the above should get you started. TTFN