Access computer name from .bat file

  • Thread starter Thread starter Christopher Jon Jursa
  • Start date Start date
C

Christopher Jon Jursa

Hello,

How would I access the computer's name from a .bat file on that computer? I
am using Windows 2000.

Cheers,

Chris
 
How would I access the computer's name from a .bat file on that computer?
I
am using Windows 2000.

%computername%

Example:
@echo The Computer name is: %computername%

Type set to see (most) all of your choices for environment
variables. "Set c" (no wildcard "*") to see all starting with
"c"
ClientName=
CommonProgramFiles=
COMPUTERNAME=
ComSpec=

A few are dynamic, %date% %time% etc, type "Set /?" for help
and these 'extra' variables (near the end.)
 
Thanks,

Is there any way to assign a value to the password of the user?

Cheers,

Chris
 
Is there any way to assign a value to the password of the user?

No -- if I understand wha you mean.

A user's password is private to that user and even an admin has
no business either knowing that password or using it.

What are you trying to ACCOMPLISH with this idea?
 
Back
Top