1.

Solve : Set Question?

Answer»

Hey,
Im trying to use set to change a variable REPRESENTING a servername. Currently there are about 20 batch files that all have a SET servername=WHATEVER. This makes it annying to change these everytime we want to change the servername. I was thinking I could just do a GLOBAL SET servername=whatever from cmd. However as soon as I exited the command line the server was no longer set. MAYBE im doing something wrong? Hopefully I explained this well enough. (OS is windows xp). Thanks for any info.Right click My Computer-->Properties-->Advanced-->Environment Variables

Define a variable NAMED servername

then OK your way out.

Hope this helps.



Discussion

No Comment Found