Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to get the computer's name  (Read 2188 times)

0 Members and 1 Guest are viewing this topic.

silent1

  • Guest
How to get the computer's name
« on: May 03, 2006, 11:27:06 AM »
So I think I've got the batch file just about working, but I need to include the machine's name in the .evt filename.

How do I get the machine's name?


Thanks!

silent1

  • Guest
Re: How to get the computer's name
« Reply #1 on: May 03, 2006, 02:08:04 PM »
I figured that it was an easy answer, but I can't believe how long it took me to find it using google.

For anyone else who may not know: %COMPUTERNAME%

GX1_Man

  • Guest
Re: How to get the computer's name
« Reply #2 on: May 03, 2006, 04:30:12 PM »
But you will NEVER forget it will you?  ;)

Dilbert

  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Re: How to get the computer's name
    « Reply #3 on: May 03, 2006, 07:58:30 PM »
    I, on the other hand, will forget in five minutes as I don't use that variable. ::)
    "The geek shall inherit the Earth."