2 type commands output 1 line?

August 3, 2011 at 16:04:54
Specs: Windows 7
Hi, I was wondering if anyone knew how to have 2 type commands output on text file but on 1 line and not 2 lines?

Example: type "C:\Program Files\blah\blah\machine.id" >> c:\temp\systeminfo2.txt & reg query "hkey_local_machine\software\blah\blah\websvc" |find /i "hostdescription" >> c:\temp\systeminfo2.txt

See More: 2 type commands output 1 line?

Report •

August 3, 2011 at 18:55:20
You'd have to pipe the outputs to some temp file or array then when complete you echo the results.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.

Report •
Related Solutions

Ask Question