Article View: net.micro.pc
Article #5451Re: null as variable in batch file
From: Jerry Lotto
Date: Tue, 11 Feb 1986 13:45
Date: Tue, 11 Feb 1986 13:45
16 lines
1039 bytes
1039 bytes
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
Technical Details
Message-ID:
<564@talcott.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!lottoReferences:
<534@whuts.UUCP>Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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