Re: Detecting if unformatted drive K: exist?



A drive can't have a letter until it is formatted.

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


.



Relevant Pages

  • Re: partition table type
    ... Look at the article in wikipedia on partition types. ... to look for something else to boot. ... I am familiar with how floppy and hard disc boot works, ...
    (Debian-User)
  • Re: partition table type
    ... Look at the article in wikipedia on partition types. ... to look for something else to boot. ... I am familiar with how floppy and hard disc boot works, ...
    (Debian-User)
  • Re: Detecting if unformatted drive K: exist?
    ... sometimes connected hard disc with a new ... this hard disc resp. ... If the partition would be formatted the ... But with an unformatted but existing partition the command above does NOT ...
    (microsoft.public.windowsxp.general)
  • Re: How to move a notebook WinXP installation to new hard disc ?
    ... How can I copy my C: (and D: partition) from the old to the new hard disc ... Install the new disk in an external USB case. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Partition
    ... not answer how to partition the hard disc. ... I have a 60 GB hard disc which has a primary basic ... >Win95 files would be listed and obtainable via Windows ... >> can I simply create a partition and install my Windows ...
    (microsoft.public.windowsxp.customize)