Re: Detecting if unformatted drive K: exist?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 16 Mar 2006 22:50:55 +1100
"Matt Adams" <mattad@xxxxxxxxxxx> wrote in message
news:441823f8$0$21656$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Assume the following situation:partition K:
I have a new, sometimes connected (external USB) hard disc with a new
on it. BUT this partition is currently NOT formatted (e.g. with NTFS).work.
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
software sources
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
Matt
I haven't tried this (because I don't happen to have any unformatted
disks lying about) but I suspect that mountvol.exe could be
your answer.
.
- Prev by Date: Re: Remote PC and public IP
- Next by Date: Re: Cannot boot Windows XP in dual boot configuration after W2K repair.
- Previous by thread: Re: Detecting if unformatted drive K: exist?
- Next by thread: Introduction to Programming Using Java
- Index(es):
Relevant Pages
|