tester55 :
Hello, Paladin
thanks but this is not I pretend...
I need a script bat or powershell
regards
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.