Beruflich Dokumente
Kultur Dokumente
DiskPart commands
To start the DiskPart command interpreter, at the
command prompt type:
diskpart
Important
Membership in the local Administrators group, or
equivalent is the minimum required to run DiskPart
Online
Recover
Rem
Remove
Repair
Rescan
Retain
San
Select
Set id
Shrink
Uniqueid
Additional references
Command-Line Syntax Key
Community Additions
redirection fails
Redirection to a text file fails in Windows 8 - see the batch file
snippet below. list.txt becomes a zero byte file.
@echo off
> script.tmp echo list disk
>> script.tmp echo exit
diskpart /s "%cd%\script.tmp" >"list.txt"
del script.tmp
Additionally: diskpart does not use the current directory and the
%CD% is required for it to find the script file.
foxidrive
4/10/2013
Usage in a script
The url "http://fogproject.org/forum/threads/extend-your-diskpartition-to-max.3640/#post-9233" displays an example of its use
in a script. Its goal is to expand a partition after imaging a
computer.
Paul Moisant
2/25/2013