If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
diskpart list volume text file?
Hi All,
Not to ask to simple a question, but is there a way to get diskpart to make a text file list of "list volume" Many thanks, -T |
Ads |
#2
|
|||
|
|||
diskpart list volume text file?
T wrote:
Hi All, Not to ask to simple a question, but is there a way to get diskpart to make a text file list of "list volume" Many thanks, -T The article here, has a link at the bottom promising "storage-commandlets for Powershell". Which may be an option if you're a Powershell person. "Diskpart Scripts and Examples" https://technet.microsoft.com/en-us/...(v=ws.11).aspx Paul |
#3
|
|||
|
|||
diskpart list volume text file?
On 02/23/2017 09:28 PM, Paul wrote:
T wrote: Hi All, Not to ask to simple a question, but is there a way to get diskpart to make a text file list of "list volume" Many thanks, -T The article here, has a link at the bottom promising "storage-commandlets for Powershell". Which may be an option if you're a Powershell person. "Diskpart Scripts and Examples" https://technet.microsoft.com/en-us/...(v=ws.11).aspx Paul Huh. Look like I have to run it as a script to get a print out. Thank you for the help! -T I will have to live with screen shots |
#4
|
|||
|
|||
diskpart list volume text file?
T wrote:
is there a way to get diskpart to make a text file list of "list volume" When you run diskpart.exe (that's all you put on the command line), you are within its shell where you enter its commands. You would have to put those commands in a file and then feed that file of commands into diskpart. Although it calls it a script, the file merely contains the list of commands you would enter inside of diskpart's shell. For example, say you want to run diskpart and the following commands inside of it (indentation is just to indicate you are within its shell): diskpart list volume exit So put the following lines into, say, a file named diskcmd (whether you add an extension is irrevalent since you are merely piping in the commands listed in the file by whatever name you give it): list volume exit Then you would run diskpart.exe with the switch to tell it what "script" file to read for a list of commands and redirect diskpart's stdout, like: diskpart.exe /s diskcmds volumes.txt |
#5
|
|||
|
|||
diskpart list volume text file?
On 02/23/2017 10:42 PM, VanguardLH wrote:
T wrote: is there a way to get diskpart to make a text file list of "list volume" When you run diskpart.exe (that's all you put on the command line), you are within its shell where you enter its commands. You would have to put those commands in a file and then feed that file of commands into diskpart. Although it calls it a script, the file merely contains the list of commands you would enter inside of diskpart's shell. For example, say you want to run diskpart and the following commands inside of it (indentation is just to indicate you are within its shell): diskpart list volume exit So put the following lines into, say, a file named diskcmd (whether you add an extension is irrevalent since you are merely piping in the commands listed in the file by whatever name you give it): list volume exit Then you would run diskpart.exe with the switch to tell it what "script" file to read for a list of commands and redirect diskpart's stdout, like: diskpart.exe /s diskcmds volumes.txt Hi Vanguard, I as afraid of that. I will just take a screen shot Thank you for the help! -T |
#6
|
|||
|
|||
diskpart list volume text file?
T wrote:
VanguardLH wrote: T wrote: is there a way to get diskpart to make a text file list of "list volume" When you run diskpart.exe (that's all you put on the command line), you are within its shell where you enter its commands. You would have to put those commands in a file and then feed that file of commands into diskpart. Although it calls it a script, the file merely contains the list of commands you would enter inside of diskpart's shell. For example, say you want to run diskpart and the following commands inside of it (indentation is just to indicate you are within its shell): diskpart list volume exit So put the following lines into, say, a file named diskcmd (whether you add an extension is irrevalent since you are merely piping in the commands listed in the file by whatever name you give it): list volume exit Then you would run diskpart.exe with the switch to tell it what "script" file to read for a list of commands and redirect diskpart's stdout, like: diskpart.exe /s diskcmds volumes.txt I as afraid of that. I will just take a screen shot Assuming the console window is large enough or the volume list not so long as to require scrolling the console window even with it maximized. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|