hello, bob,
good point, why do you want to unformat a ramdisk?
well, naturally, i'd rather not! This is the scenario:
a ramdisk is running. everything is fine. but then for some reason i need to
logout.
usually someone else needs to log on to the machine.
before logging out, the ramdisk is emptied.
there is no telling what state the ramdisk will be in, once i log back in to the
machine.
it could be absent altogether (not a problem, just restart the ramdisk service).
one could of course, run some commands to find out whether the ramdisk was
formatted, unformatted, etc, etc
however, i'd prefer just to have a universal command that always worked.
'echo y | format /v:label ...' does this except when the ramdisk is already
formatted, and labelled.
however, if there was a 'format -force' command or a 'format -raw' (ie -raw
means create unformatted), it wouldn't matter,
it would always be possible to start from a known point, in that 'echo y |
format /v:label ...' would always work after a 'format -raw'.
well there's no 'format -raw' so 'label %ram_vol% < .\label.input' was what i
came up with.
note that at the moment, this solution is fully scripted, eg, where i state
"restart the ramdisk service",
the user doesn't have to do this manually, the login script will do this.
thanks for biting!,
tim.
_________________________