Computing.Net > Forums > Disk Operating System > Check if a primary partition 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.

Check if a primary partition exist

Reply to Message Icon

Name: KLEMENTIN
Date: June 13, 2003 at 08:04:24 Pacific
OS: DOS
CPU/Ram: 2,4ghz, 1gb ram
Comment:

Hi!
I'm trying to make a batch-file that will check if there is a primary partition on the harddrive. I know how to check if there's a formated partition but how do you check if there's a unformated partition?
Thx!
/K



Sponsored Link
Ads by Google

Response Number 1
Name: bitbyte
Date: June 14, 2003 at 08:03:25 Pacific
Reply:


for which kind of os do you need it? for dos or for a shell under windows?


0

Response Number 2
Name: KLEMENTIN
Date: June 15, 2003 at 14:50:42 Pacific
Reply:

For pure DOS (like v6.2 or v7.0).
/K


0

Response Number 3
Name: KLEMENTIN
Date: June 16, 2003 at 02:10:23 Pacific
Reply:

It's will be used something like this:

A:\SOME_PRG_THAT_CHECK_THE_PRIMARY_PARTITON.exe
IF "%ERRORLEVEL%"=""0"" GOTO NO_PRIMARY
IF "%ERRORLEVEL%"=""1"" GOTO PRIMARY_EXIST
:NO_PRIMARY
::Do nothing

:PRIMARY_EXIST
::Do something


0

Response Number 4
Name: bitbyte
Date: June 16, 2003 at 14:28:10 Pacific
Reply:


hi at my page there is a new tool called PARTLIST.COM with 2 example batch files.

try them, its what you wish
under download at http://plop.at


0

Response Number 5
Name: KLEMENTIN
Date: June 16, 2003 at 23:07:33 Pacific
Reply:

GREAT! Thank you soo much! :-)
/K


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






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: Check if a primary partition exist

Dual boot on two primary partition www.computing.net/answers/dos/dual-boot-on-two-primary-partition/14235.html

Check if a file is in use www.computing.net/answers/dos/check-if-a-file-is-in-use/13573.html

check if a windows program running? www.computing.net/answers/dos/check-if-a-windows-program-running/13499.html