powtrix

powtrix

Aug 4th, 2009
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.47 KB | None | 0 0
  1. C:\>for /f "tokens=2,3* delims= " %i in ('echo list vol ^| diskpart ^| findstr /i system') do (@echo select vol %i > c:\pow.dps && @echo assign letter=i >> c:\pow.dps && diskpart -s c:\pow.dps)
  2.  
  3. C:\>()
  4.  
  5. Microsoft DiskPart versão 6.1.7600
  6. Copyright (C) 1999-2008 Microsoft Corporation.
  7. No computador: VBOX03
  8.  
  9. O volume 1 está selecionado.
  10.  
  11. DiskPart atribuiu com êxito a letra de unidade ou o ponto de montagem.
  12.  
  13. C:\>type c:\pow.dps
  14. select vol 1
  15. assign letter=i
  16.  
  17. C:\>
Add Comment
Please, Sign In to add comment