Home / Microsoft / Microsoft DOS / How to get the computer's name
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: How to get the computer's name  (Read 548 times)
silent1
Guest
« 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!
IP logged
silent1
Guest
« 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%
IP logged
GX1_Man
Moderator
Mastermind


Thanked: 23
Posts: 18,215

Because beige is beautiful !!!

« Reply #2 on: May 03, 2006, 04:30:12 PM »

But you will NEVER forget it will you?  ;)
IP logged

Please post as much information about your computer, operating system, and problem as possible, what happened prior to problems, etc. Too much info is OK, too little is pointless! Don't just say "My computer doesn't work. What's wrong?"
Dilbert
Moderator
Egghead



Thanked: 40
Posts: 3,480

Welcome to ComputerHope!

« 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. ::)
IP logged

"The geek shall inherit the Earth."
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / How to get the computer's name « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.113 seconds with 20 queries.