Article View: demon.tech.pc
Article #68628Re: Null files everywhere
From: Dr John Stockton
Date: Fri, 03 May 1996 00:00
Date: Fri, 03 May 1996 00:00
19 lines
1407 bytes
1407 bytes
In article <831074750snz@cdsl.demon.co.uk> in demon.tech.pc, Peter Hayward <peter@cdsl.demon.co.uk> wrote: >... > You have recently written/installed/edited or whatever a batch file > with a _comment/remark_ line containing the characters ' > null '. > > As far as DOS concerned a line begining 'rem' is simply another > command line with that just happens to have an internal command that > doesn't do very much. Being a command line you can redirect output. > Since there isn't any output you get a file of zero length after the > command has completed, i.e. DOS moves onto the next line. ISTR that using "::" instead of "Rem" has the desired effect. The line is now a label ':', so as long as you do NOT have "GOTO :" it does nothing. Of course, ' > null ' sounds like a mistake too : ' > nul ' ? -- John Stockton, Surrey, UK. JRS@merlyn.demon.co.uk Turnpike v1.12 MIME
Technical Details
Message-ID:
<PhDU8KAadnixEw$y@merlyn.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<40RYPFALU$hxEwAF@asjones.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1036bc,24d7395dcd7f7a8c X-Google-Attributes: gid1036bc,public From: Dr John Stockton <jrs@merlyn.demon.co.uk> Subject: Re: Null files everywhere Date: 1996/05/03 Message-ID: <PhDU8KAadnixEw$y@merlyn.demon.co.uk> X-Deja-AN: 152872746 distribution: world x-nntp-posting-host: merlyn.demon.co.uk references: <40RYPFALU$hxEwAF@asjones.demon.co.uk> organization: Home, Surrey, UK mime-version: 1.0 newsgroups: demon.tech.pc