Name a txt file with output of command - TechRepublic
General discussion
March 24, 2011 at 12:41 PM
cummins75904

Name a txt file with output of command

by cummins75904 . Updated 15 years, 3 months ago

Hello,
I am trying to name a txt file with the output of this command:

wmic csproduct get identifyingnumber >> c:\users\%username%\desktop\(S.T.#Here).txt

which displays the Service tag number of machines and writes the service tag number into this text file. I have been beating my head in on this one, please help me.

This discussion is locked

All Comments