Jump to content

Programa para trocar as letras das unidades


a3deluxe

Recommended Posts

Boas,

Queria fazer um programa para trocar as letras das unidades.

podendo escolher a unidade actual e a unidade a trocar?

e fazer reboot.

posso usar os comandos do regedit?

 HKLM\SYSTEM\MountedDevices

“\DosDevices\D:” por “\DosDevices\E:“.

ou a alguma maneira mais facil?

Edited by a3deluxe
Link to comment
Share on other sites

Tens funções para ler/alterar/apagar dados do registry

http://social.msdn.microsoft.com/Forums/vstudio/en-US/5b22e94c-37a9-4be5-ad55-3d9229220194/how-to-use-add-read-change-delete-registry-keys-with-vbnet

Agora, tem é atenção ao que fazes, para ver se não das cabo de nada

Para reiniciar o computador, podes executar o comando shutdown, algo assim:

System.Diagnostics.Process.Start("ShutDown", "/r")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.