Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!luth!sunic!tut!funic!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: DOS Batch files (help) Message-ID: <1990Aug23.211249.29581@uwasa.fi> Date: 23 Aug 90 21:12:49 GMT References: <3078@orbit.cts.com> <1990Aug24.010219.2088@vaxa.cc.uwa.oz.au> Organization: University of Vaasa Lines: 22 >In article <3078@orbit.cts.com>, griggs@pnet51.orb.mn.org (Griggs Nichols) writes: >> Batch file aficionados, I need some help. >> >> I am trying to figure out a way to read/verify a VOL label on a disk in drive >> A, through a command line in a batch file. Not easy, but possible. You have to write eg a Turbo Pascal (or C) program to read the volume label, and then have the program set an environment variable to contain the label name. Neither of these programming tasks is trivial, but the principle is valid. I know this from experience with a remotely similar programming dilemma I had to solve quite some time ago. Of course there might be other solutions as well, but I can't figure out any other at the moment. If you happen to be a novice at writing batch files, you may find some useful general tricks of batch programming in (/pc/ts/) tsbat21.arc available by anonymous ftp from our site. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun