Share via

How to echo a variable without echoing the content of the variable - batch file

Anonymous
2010-08-23T16:36:11+00:00

So I want to do this echo %computername%

pcname.txt

I dont want the text file to contain:

mypc-pc

I want the text file to actually contain the variable name: %computername% Any ideas on how to do this?

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2010-08-23T21:19:00+00:00

    This link should help you.

    http://www.robvanderwoude.com/usermessages.php

    Thanks

    Dinesh


    Regards Dinesh

    Was this answer helpful?

    0 comments No comments