d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Cmd Batch File Question > Simple But Stumped
Add Reply New Topic New Poll
Member
Posts: 5,142
Joined: Mar 13 2005
Gold: 18,260.63
Oct 28 2013 09:53pm
Im taking a simple refresher course on batch files. I need to remove the "Loading..." that appears when running systeminfo and send it to NUL. I can't remember how to redirect the Loading messages to nul. Here is the batch file I need to remove the Loading from:

REM Find all desired variables and export to .info file
systeminfo | findstr /c:"Host Name" /c:"OS Name" /c:"OS Version" /c:"BIOS Version" /c:"OS Configuration" /c:"Registered Owner" /c:"Product ID" /c:"Total Physical Memory" /c:"Original Install Date" /c:"System Manufacturer" /c:"System Model" /c:"Processor(s)" > SYS%computername%.info

REM Clear the command prompt and display the contents of previously created file
cls
type SYS%computername%.info




Basically need systeminfo to run without showing the user that Loading blah blah blah.

Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Oct 29 2013 12:47am
how about:
Code
systeminfo >nul 2>nul
I *think that will suppress all output, even errors.

This post was edited by Azrad on Oct 29 2013 12:48am
Go Back To Homework Help Topic List
Add Reply New Topic New Poll