Computing.Net > Forums > Disk Operating System > IF EXIST

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IF EXIST

Reply to Message Icon

Name: Brian Bolt
Date: March 19, 2002 at 08:41:06 Pacific
Comment:

Does a command exist that looks to see if a folder exists? As I understand it, the DOS IF EXIST command can only check to see if a file exists.

Thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: March 19, 2002 at 11:00:33 Pacific
Reply:

To check if the directory C:\FOLDER exists:

IF EXIST C:\FOLDER\NUL ...

-- Secret_Doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: IF EXIST

If exist any directory? www.computing.net/answers/dos/if-exist-any-directory/1407.html

if-exist-dir www.computing.net/answers/dos/ifexistdir/2530.html

If exists/errorlevel www.computing.net/answers/dos/if-existserrorlevel/2107.html