Article View: comp.os.ms-windows.misc
Article #3413Re: Windows DOS box is lying to me
From: Tim Bierman
Date: Sun, 11 Dec 1994 16:42
Date: Sun, 11 Dec 1994 16:42
16 lines
1438 bytes
1438 bytes
In article <787174497snz@candub.demon.co.uk>
agd@candub.demon.co.uk "Terry Ebdon" writes:
> > if exist dir_name\nul goto blah_blah_blah
>
> The DOS device names are reserved, you should never try to create or refer
> to a file of the same name unless you're referring to the device. An
> irritating restriction, but you have to live with it if you expect things to
> work.
I'm sure I've seen this trick officially sanctioned in Microsoft docs as the
way to check whether or not a directory exists. The indexes are so bad I
haven't been able to find the reference again.
--
Tim
Technical Details
Message-ID:
<787164134snz@bierman.demon.co.uk>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!demon!betanews.demon.co.uk!bierman.demon.co.uk!timReferences:
<787141964snz@azmi.demon.co.uk> <787174497snz@candub.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 11:08:51 PST Newsgroups: comp.os.ms-windows.misc,demon.tech.pc From: tim@bierman.demon.co.uk (Tim Bierman) Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!demon!betanews.demon.co.uk!bierman.demon.co.uk!tim Subject: Re: Windows DOS box is lying to me References: <787141964snz@azmi.demon.co.uk> <787174497snz@candub.demon.co.uk> Organization: - Reply-To: tim@bierman.demon.co.uk X-Newsreader: Demon Internet Simple News v1.29 Lines: 16 X-Posting-Host: bierman.demon.co.uk Date: Sun, 11 Dec 1994 16:42:14 +0000 Message-ID: <787164134snz@bierman.demon.co.uk> Sender: usenet@demon.co.uk