PC Review


Reply
Thread Tools Rate Thread

Detecting if unformatted drive K: exist?

 
 
Matt Adams
Guest
Posts: n/a
 
      15th Mar 2006
Assume the following situation:

I have a new, sometimes connected (external USB) hard disc with a new partition K:
on it. BUT this partition is currently NOT formatted (e.g. with NTFS).

How do I detect from command line (program) if
this hard disc resp. partition is currently connected or not ?

Notice: If the partition would be formatted the
solution is simple:

if exist "K:\" Echo K: is existing

But with an unformatted but existing partition the command above does NOT work.

So again: Is there a detection command line program
which gives me a reliable "yes" (errorlevel=1) or no
on this question?

Maybe I need one of these ResourceKit programs from MS or from other software sources

Matt

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RXJpYw==?=
Guest
Posts: n/a
 
      15th Mar 2006
If the drive is working it should appear here:

Disk Management - enter diskmgmt.msc in the Start => Run box

You can partition and format it from there.

Eric,
PC Buyer Beware!
http://www.pcbuyerbeware.co.uk/

"Matt Adams" wrote:

> Assume the following situation:
>
> I have a new, sometimes connected (external USB) hard disc with a new partition K:
> on it. BUT this partition is currently NOT formatted (e.g. with NTFS).
>
> How do I detect from command line (program) if
> this hard disc resp. partition is currently connected or not ?
>
> Notice: If the partition would be formatted the
> solution is simple:
>
> if exist "K:\" Echo K: is existing
>
> But with an unformatted but existing partition the command above does NOT work.
>
> So again: Is there a detection command line program
> which gives me a reliable "yes" (errorlevel=1) or no
> on this question?
>
> Maybe I need one of these ResourceKit programs from MS or from other software sources
>
> Matt
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some files on drive won't copy because windows things drive is unformatted The Old Fart Windows XP Help 1 10th Oct 2007 01:20 AM
Detecting if unformatted drive K: exist? Matt Adams Windows XP General 4 16th Mar 2006 11:50 AM
Detecting if unformatted drive K: exist? Matt Adams Microsoft Windows 2000 1 15th Mar 2006 02:40 PM
Detecting If An .xls File Exist abxy Microsoft Excel Programming 2 7th May 2004 08:00 PM
I need help with unformatted drive Meyer Microsoft Windows 2000 4 23rd Jul 2003 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.