Jump to content

Export data from command prompt


Recommended Posts

Guest adrianh
Posted

I have used the PSTools program 'PSinfo' to generate diskspace reports of

several machines. This allows the results to be dispalyed in the command

window in csv format. How do I send this information into a csv/Excel file

for reporting / manipulation as it is impossible to analyse whilst in the

command prompt?

 

Thanks for any help.

 

Adrian

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Export data from command prompt

 

 

"adrianh" <adrianh@discussions.microsoft.com> wrote in message

news:B56C913C-1204-44FF-B154-11E2F09564EA@microsoft.com...

>I have used the PSTools program 'PSinfo' to generate diskspace reports of

> several machines. This allows the results to be dispalyed in the command

> window in csv format. How do I send this information into a csv/Excel file

> for reporting / manipulation as it is impossible to analyse whilst in the

> command prompt?

>

> Thanks for any help.

>

> Adrian

 

The vast majority of command line commands let you redirect

their "Standard Output" to a text file like so:

 

psinfo > c:\info.txt

Guest Lanwench [MVP - Exchange]
Posted

Re: Export data from command prompt

 

adrianh <adrianh@discussions.microsoft.com> wrote:

> I have used the PSTools program 'PSinfo' to generate diskspace

> reports of several machines. This allows the results to be dispalyed

> in the command window in csv format. How do I send this information

> into a csv/Excel file for reporting / manipulation as it is

> impossible to analyse whilst in the command prompt?

>

> Thanks for any help.

>

> Adrian

 

Append a path & filename for output to a .csv file... e.g.,

 

psinfo (blahblahblah) >c:\temp\psinforeport.csv

Guest adrianh
Posted

RE: Export data from command prompt

 

Thanks to both of you for a prompt reply - that's done just what I needed!

 

"adrianh" wrote:

> I have used the PSTools program 'PSinfo' to generate diskspace reports of

> several machines. This allows the results to be dispalyed in the command

> window in csv format. How do I send this information into a csv/Excel file

> for reporting / manipulation as it is impossible to analyse whilst in the

> command prompt?

>

> Thanks for any help.

>

> Adrian


×
×
  • Create New...