Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.14 $; site siemens.UUCP Path: utzoo!linus!decvax!bellcore!petrus!scherzo!allegra!princeton!siemens!fwb From: fwb@siemens.UUCP Newsgroups: net.micro Subject: Re: null as variable in batcg file Message-ID: <22700002@siemens.UUCP> Date: Tue, 11-Feb-86 08:50:00 EST Article-I.D.: siemens.22700002 Posted: Tue Feb 11 08:50:00 1986 Date-Received: Fri, 14-Feb-86 07:28:48 EST References: <533@whuts.UUCP> Lines: 14 Nf-ID: #R:whuts:-53300:siemens:22700002:000:411 Nf-From: siemens!fwb Feb 11 08:50:00 1986 > Does anyone know how to detect a null as variable input in a batch file? > Specifically: > > foo %1 --how do I detect case where %1 is omitted, thus avoiding > an error? I've tried 'if %1=='':goto xx' as well as > ==' ' Try if %1X == X goto null ----------------------------------------------------- Frederic W. Brehm (ihnp4!princeton!siemens!fwb) Siemens Research and Technology Laboratories