Article View: comp.os.ms-windows.misc
Article #3412Re: Windows DOS box is lying to me
From: Terry Ebdon
Date: Sun, 11 Dec 1994 14:52
Date: Sun, 11 Dec 1994 14:52
16 lines
1402 bytes
1402 bytes
In article <787141964snz@azmi.demon.co.uk>
azmi@azmi.demon.co.uk "Azmi Tenikalp" writes:
> if exist dir_name\nul goto blah_blah_blah
>
> I'm at present working on a batch file, in which the above works
> perfectly well running in DOS, but when I run it in a DOS box within
> Windows, it reports that the directory exists every time, whether the
> directory actually exists or not.
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.
Terry
Technical Details
Message-ID:
<787174497snz@candub.demon.co.uk>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!demon!candub.demon.co.uk!agdReferences:
<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 06:57:01 PST Newsgroups: comp.os.ms-windows.misc,demon.tech.pc From: agd@candub.demon.co.uk (Terry Ebdon) Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!demon!candub.demon.co.uk!agd Subject: Re: Windows DOS box is lying to me References: <787141964snz@azmi.demon.co.uk> Reply-To: agd@candub.demon.co.uk X-Newsreader: Demon Internet Simple News v1.29 Lines: 16 X-Posting-Host: candub.demon.co.uk Date: Sun, 11 Dec 1994 14:52:08 +0000 Message-ID: <787174497snz@candub.demon.co.uk> Sender: usenet@demon.co.uk