Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site talcott.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!lotto From: lotto@talcott.UUCP (Jerry Lotto) Newsgroups: net.micro.pc,net.micro Subject: Re: null as variable in batch file Message-ID: <564@talcott.UUCP> Date: Tue, 11-Feb-86 08:45:54 EST Article-I.D.: talcott.564 Posted: Tue Feb 11 08:45:54 1986 Date-Received: Wed, 12-Feb-86 21:39:23 EST References: <534@whuts.UUCP> Distribution: net Organization: Harvard Univ. Chem. Dept. Lines: 16 Xref: watmath net.micro.pc:6917 net.micro:13768 In article <534@whuts.UUCP>, 2212msr@whuts.UUCP (ROBIN) writes: > Does anyone know how to detect a null as variable input in a batch file? The simplest solution is: if %1.==. goto null ... process :null echo No input on command line -- Gerald Lotto - Harvard Chemistry Dept. UUCP: {seismo,harpo,ihnp4,linus,allegra,ut-sally}!harvard!lhasa!lotto ARPA: lotto@harvard.EDU CSNET: lotto%harvard@csnet-relay