Name a txt file with output of dos command

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

wmic csproduct get identifyingnumber >> c:users%username%desktop([b]S.T.#Here[/b][italic][/italic][color=Red][/color]).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.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!