Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!usc!apple!uokmax!munnari.oz.au!uniwa!vaxa.cc.uwa.oz.au!h_esben From: h_esben@vaxa.cc.uwa.oz.au Newsgroups: comp.sys.ibm.pc.misc Subject: Re: DOS Batch files (help) Message-ID: <1990Aug24.010219.2088@vaxa.cc.uwa.oz.au> Date: 23 Aug 90 17:02:18 GMT References: <3078@orbit.cts.com> Organization: University of Western Australia Lines: 26 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. > > Currently I am using an IF...EXIST line which looks and verifies the existance > of a dummy text file on the disk. Because this takes up precious room on the > disk, I'd like to be able to just verify the label. BTW, I am using DOS 3.3. > I know that MS-DOS 4.01 has the ability to recognize serial numbers for > individual disks, and this problem is sort of addressed in the current > PC/COMPUTING magazine. > Not an answer to your question, but an alternative solution. Try using the following command at the DOS prompt : A:> REM > filename.ext Then use IF EXIST filename.txt to test for the existence of the file. The above method will create a directory entry only on the disk, and does not take up any room on the disk. =================================================================== Henry Esbenshade email: h_esben%vaxa.uwa.oz phone: 09 380 3435 fax: 09 381 6427 Department of Geography, University of Western Australia Nedlands, Western Australia, 6009, Australia