Scripts Thread, adding Environment Variables? in Coding and Web Development; hello, there is any scrip to add "user Variables for %USERPROFILE%" ? i need to run it on at least ...
-
11th August 2009, 07:16 PM #1
- Rep Power
- 0
adding Environment Variables?
hello, there is any scrip to add "user Variables for %USERPROFILE%" ? i need to run it on at least 50 students computers (xp32)
any help its welcome.
-
-
11th August 2009, 07:49 PM #2 Sorry, can you elaborate a bit, I can't make out the intention from your post.
Are you trying to set the userprofile environment variable to point somewhere, or are you trying to make a new environment variable?
Are you in an AD network?
-
-
11th August 2009, 07:55 PM #3
- Rep Power
- 0

Originally Posted by
kmount
Sorry, can you elaborate a bit, I can't make out the intention from your post.
Are you trying to set the userprofile environment variable to point somewhere, or are you trying to make a new environment variable?
Are you in an AD network?
i am trying to make a new environment variable
just as illustrated
class.JPG
-
-
11th August 2009, 08:05 PM #4 Those custom variables are held in the registry [HKEY_CURRENT_USER\Environment]
You could write a VB script which will add them at logon, or use REGEDIT in silent mode to import a .REG file with the necessary additions in.
Mike.
-
Thanks to maniac from:
GiantEnemyAnt (11th August 2009)
-
11th August 2009, 08:07 PM #5 As maniac said, you could script this quite easily in a login script something along the lines of:
Code:
SET CLASSTMP=W:\TEMP
-
Thanks to kmount from:
GiantEnemyAnt (11th August 2009)
-
11th August 2009, 08:08 PM #6 
Originally Posted by
kmount
As maniac said, you could script this quite easily in a login script something along the lines of:
Code:
SET CLASSTMP=W:\TEMP
Didn't know about that command, even easier than the method I was suggesting!
-
-
11th August 2009, 08:13 PM #7 
Originally Posted by
maniac
Didn't know about that command, even easier than the method I was suggesting!
It's quite handy for quick stuff like that.
If you use set without any arguments/parameters it'll helpfully show you all of the current environment variables.
-
Thanks to kmount from:
maniac (11th August 2009)
-
11th August 2009, 08:17 PM #8 You can use the command to permanently change environment variables
-
SHARE:
Similar Threads
-
By ful56_uk in forum Networks
Replies: 14
Last Post: 27th July 2009, 10:23 PM
-
By Reaper in forum Scripts
Replies: 2
Last Post: 19th February 2009, 05:45 PM
-
By Hightower in forum Web Development
Replies: 8
Last Post: 2nd December 2008, 02:54 PM
-
Replies: 17
Last Post: 8th May 2008, 09:58 PM
-
By HodgeHi in forum Scripts
Replies: 3
Last Post: 21st June 2006, 09:05 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules