Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting varible to Computer Name

Status
Not open for further replies.

Overmyhead2

Programmer
Jun 5, 2000
39
US
How can I set a varible to = the computer name in w98?
Victoria Victoria
 
I am changing from Netware to NT. I have w98 workstations. In Netware I could set address, userid, ...ect. to varibles (%---%)in the login script. Each workstation's enviroment was set to these values as users logged in. I know these values are in the registry. How to get them out with a bat file , don't know. For now I am just setting the address and machine name with set commands in the autoexec.bat. This is going to work for now. But would still like a way to get who logged in into a varible %username% at the workstation. set name=%username% works for the nt workstation but not the w98 workstation. Thanks for responding.
Victoria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top