Jump to content

Programa para trocar as letras das unidades


Recommended Posts


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?


“\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


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.