Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!cs.umn.edu!cybrspc!roy From: cybrspc!roy@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: DOS Batch files (help) Message-ID: <2L3ao2w162w@cybrspc> Date: 22 Aug 90 12:45:12 GMT References: <3078@orbit.cts.com> Organization: Villa CyberSpace, Minneapolis, MN Lines: 32 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 existanc > 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. > > Thanks. > > Griggs Do you want to do something like if vollabel == "thislabl" then dosomething I think I can whip up a program to do that. Batch files, though, can usually only process the errorlevel returned from a program. I'm still working on setting parent environment variables, so it'll be a week or more before I can do that. (a simple one could be written after work tonight) -- Roy M. Silvernail | #include | Does virtual now available at: | main(){ | reality need cybrspc!roy@cs.umn.edu | float x=1; | swap space? (cyberspace... be here!)| printf("Just my $%.2f.\n",x/50);} | -- me