🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.misc
Article #3410

Re: Windows DOS box is lying to me

#3410
From: John Beardmore
Date: Sun, 11 Dec 1994 13:26
26 lines
1592 bytes
In article <787141964snz@azmi.demon.co.uk>
           azmi@azmi.demon.co.uk "Azmi Tenikalp" writes:

>To test for the existence of a directory from a DOS batch batch file, 
>I use the time honoured method of testing for the existence of NUL 
>in that directory, eg :
>
>     if exist dir_name\nul goto blah_blah_blah

Have you tried these variants:

    if exist dir_name goto blah_blah_blah

and

    if exist dir_name\*.* goto blah_blah_blah


They may not be exactly what you need but they might shed some light on the
problem I guess.

-- 
John Beardmore     wookie@wookie.demon.co.uk
                   wookie@cix.compulink.co.uk

Remember children:  'M' is for Monoculture and for Microsoft.
Technical Details
Message-ID: <787152405snz@wookie.demon.co.uk>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!sgigate.sgi.com!sgiblab!swrinde!pipex!demon!wookie.demon.co.uk!wookie
References: <787141964snz@azmi.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036bc,9ff9719c69a20c16
X-Google-Attributes: gid1036bc,public
X-Google-Thread: 1102f1,9ff9719c69a20c16
X-Google-Attributes: gid1102f1,public
X-Google-ArrivalTime: 1994-12-11 05:26:45 PST
Newsgroups: comp.os.ms-windows.misc,demon.tech.pc
From: wookie@wookie.demon.co.uk (John Beardmore)
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!sgigate.sgi.com!sgiblab!swrinde!pipex!demon!wookie.demon.co.uk!wookie
Subject: Re: Windows DOS box is lying to me
References: <787141964snz@azmi.demon.co.uk>
Organization: at home and work.
Reply-To: wookie@wookie.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.29
Lines: 26
X-Posting-Host: wookie.demon.co.uk
Date: Sun, 11 Dec 1994 13:26:45 +0000
Message-ID: <787152405snz@wookie.demon.co.uk>
Sender: usenet@demon.co.uk