Thank you very much!
Dos-like?
You're not giving much detail away. Dos can't see an NTFS partition.
--
Regards,
Mic
Is there a way to set a partition from a drive to hidden, or unhidden
from a command line or a batch command?
I want to secure this partition with backups for other users of this
XP computer.
Thanks
Encrypt it?
--
Regards,
Mic
Is there a beter way with encryption?
As long as "DOS-like" means a command prompt inside of Windows, then
DISKPART could be used to remove the drive letter for the volume which
would effectively hide it from most casual users. It supports script
files, so you could set up a script file and run it inside of a batch
file to automate things. For example, say you want to hide volume 2
(on my computer, that is drive D:. I found that out by running
DISKPART then using the LIST VOLUME command). You could set up files
with the commands as follows:
file C:\test\hidevol2.txt:
select volume 2
remove letter D
exit
file C:\test\showvol2.txt:
select volume 2
assign letter D
exit
Then set up a couple of batch files like so:
batch file hidevol2.bat:
@diskpart /s C:\test\hidevol2.txt
batch file showvol2.bat:
@diskpart /s C:\test\showvol2.txt
You will want to be sure to specify the full path to the script files
otherwise DISKPART won't be able to find them unless you run the
command from the same directory as the script file. Also, according
to MS documentation, you should allow at least 15 seconds after
running a DISKPART script before running another so keep that in mind.
The only drawback I've seen is that it required me to reboot after
removing the drive letter once, but something may have been accessing
the drive at the time, I'm not sure.
Finally, DISKPART under Windows 7 (not sure about Vista) supports
hiding volumes, but it doesn't work the way I'd expect - that is, it
appears to hide all volumes on a disk, and won't let you hide volumes
on a disk that contains the boot, system, or pagefile volume. So it
may not be helpful in your case, but if it is, it can also be scripted
and if you need help just ask.
Hope this helps.
--
Zaphod
"The best Bang since the Big One" - Eccentrica Gallumbits
Sorry, I can't really help you there...
--
Zaphod
Vell, Zaphod's just zis guy, ya know? - Gag Halfrunt
I believe Truecrypt can mount an encrypted volume or not. It also has
commend line features I think.
http://www.google.com.au/search?hl=en&q=Truecrypt&btnG=Google+Search
--
Regards,
Mic
aefdisk32 (shareware)
http://www.aefdisk32.com/main/news.php?lang=en
--
"Nuns! NUNS! Reverse! Reverse!"
On Tue, 26 Apr 2011 13:50:52 +0100, "Esra Sdrawkcab" <ad...@127.0.0.1>
wrote: