[SOLVED] Script Hide Drive

Jan 8, 2019
2
0
10
Hello,
I need help, does some already did any bat file to hide one partion or drive for windows 10 ?
thanks
 
Solution


Let me give you a short tutorial.

Create 2 .bat files.

hide_a_drive.bat (copy and paste text below into the file.
diskpart /s C:\Users\User\Desktop\hide_a_drive.txt

show_a_drive.bat (copy and paste text below into the file.
diskpart /s C:\Users\User\Desktop\show_a_drive.txt

create 2 .txt files

show_a_drive.txt (copy and paste text below into the file).

list volume
select volume x
assign letter x

hide_a_drive.txt (copy and paste text below into the file).

list volume
select volume x
remove letter x

Now you if you run a bat file, it should execute commands from a txt file, which are responsible for hiding/showing your drive.

Good...

TYPICALHUMAN

Distinguished
Sep 10, 2016
130
6
18,695


Let me give you a short tutorial.

Create 2 .bat files.

hide_a_drive.bat (copy and paste text below into the file.
diskpart /s C:\Users\User\Desktop\hide_a_drive.txt

show_a_drive.bat (copy and paste text below into the file.
diskpart /s C:\Users\User\Desktop\show_a_drive.txt

create 2 .txt files

show_a_drive.txt (copy and paste text below into the file).

list volume
select volume x
assign letter x

hide_a_drive.txt (copy and paste text below into the file).

list volume
select volume x
remove letter x

Now you if you run a bat file, it should execute commands from a txt file, which are responsible for hiding/showing your drive.

Good Luck. You have to change volume and drive letter of course, to proper ones.
 
Solution