Re: Detecting if unformatted drive K: exist?
- From: "Colon Terminus" <Colon_Terminus@xxxxxxxxxxx>
- Date: Wed, 15 Mar 2006 10:50:24 -0500
You'll get answers pertinent to your question if you repost your query in
microsoft.public.win2000.cmdprompt.admin, but here's something to work with.
If you simply change to the K drive in your command Win2K will generate a
different error message when the drive is present and not formatted than if
the drive doesn't exist. You might try issuing the command K: in your .cmd
or .bat file and piping the result to the Find command.
"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
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- Prev by Date: Re: Full screen Command Prompt window opens When a particular USB flash drive is installed
- Next by Date: Re: XP Home with NT Server
- Previous by thread: Re: Detecting if unformatted drive K: exist?
- Next by thread: Re: Detecting if unformatted drive K: exist?
- Index(es):
Relevant Pages
|