Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcsun!sunic!dkuug!vaxc!vaxa!vax87!dalw From: dalw@vax87.aud.auc.dk Newsgroups: comp.sys.ibm.pc Subject: Data-path checker Message-ID: <304@vax87.aud.auc.dk> Date: 5 Feb 90 15:36:18 GMT Lines: 44 Hello !! I need a program to check wether a certain data-path exists or not. Here's my problem : The user have to give in where he want's his data to be stored when starting up a given program from Dos. Normally he would start the program like this: C:\>f:\wp\wp/ps=a:\wpdata but I would like to put it in a BAT file instead. The BAT file could look like this: ---------------------------------------------------------------------------- @echo off :again cls echo echo Your data-path please ! (fx. a:, a:\, c:\wpdata, z:\data). answer Data-path : ** answer places the data-path in an environment ** variable called answer. XX ** XX indicates the program that I need to confirm ** wether answer exists or not. The program have to ** set an environment variable fx. data = true if the ** path exists otherwise set data = false if %data%=thrue goto goon echo echo Wrong data-path - try again !! goto again :goon f:\wp\wp/ps=%answer% cls c: ----------------------------------------------------------------------------- Please mail as soon as possible. Luis Winther Aalborg University Center Denmark dalw@vax87.aud.auc.dk