Re: Detecting if unformatted drive K: exist?




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:

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




--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • IDE HDD fail?
    ... This caused after this command: ... Device contains neither a valid DOS partition table, nor Sun, SGI or OSF ... Offline data collection status: ... Self-test execution status: ...
    (Linux-Kernel)
  • Re: Help with a little dd damage!
    ... Partition 3 has different physical/logical beginnings: ... Feb 28 20:20:57 morgansmachine kernel: EXT3-fs: write access will be enabled during recovery. ... So, fingers firmly crossed, have I managed to copy enough of my hard drive with the first two commands to be able to patch back the catastrophic damage I seem to have done with the last command. ... "By choosing not to ship any proprietary or binary drivers, Fedora does ...
    (Fedora)
  • Re: Trying to move /usr - Fixed
    ... After thinking about that mv command, ... Note /dev/ad8s1e is an empty partition (a new disk, ... I'll use user and usrdemo as the names of the ... the root of the file system. ...
    (freebsd-questions)
  • Re: HD-DOS+ Notes
    ... The F-P command expects high byte first and low byte last. ... No, if there are more than 16 characters in the filename, the normal ... the system partition and is arranged just like a directory on a disk ...
    (comp.sys.cbm)
  • add disk/partition to softRaid5
    ... I am trying to add a partition to a 3 disk RAID5 device by using ... Command: Partition number: ... Old raid-disk 0 has 2132 chunks, ...
    (comp.os.linux.misc)