A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

diskpart list volume text file?



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old February 24th 17, 03:56 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default 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  
Old February 24th 17, 05:28 AM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default 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  
Old February 24th 17, 05:59 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default 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  
Old February 24th 17, 06:42 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default 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  
Old February 25th 17, 01:33 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default 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  
Old February 25th 17, 02:33 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default 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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 07:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.