[THIN] Re: %Username% variable
- From: "Paul DeHaan" <wppad@xxxxxxxxx>
- To: <thin@xxxxxxxxxxxxx>
- Date: Fri, 25 Jul 2003 14:35:04 -0400
This .vbs script will make you edits.
----script start-----
Dim regPath1, regPath2, objShell
regPath1 =
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders\"
regPath2 =
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders\"
Set objShell = CreateObject("WScript.Shell")
Set WshNetwork = WScript.CreateObject("WScript.Network")
objShell.RegWrite regPath1 & "Cache", "x:\temp\" & WshNetwork.UserName
& "\Temporary Internet Files"
objShell.RegWrite regPath2 & "Cookies", "x:\temp\" &
WshNetwork.UserName & "\Temporary Internet Files"
Set RegPath = nothing
Set objShell = nothing
Set WshNetwork = nothing
----script end------
Regards,
>>> L.Seitz@xxxxxxx 07/25/03 10:50AM >>>
I am trying to redirect Cookies\Cache for anonymous users and have the
below
.reg file so far. I am trying to use that to
pass the variable from %USERNAME% and create the directory... only its
taking the reg file literally and writing the directory as %USERNAME%
rather
than the value.
I am a scripting "dullard", can someone help me out to create a reg
file to
create the per user directory? Thanks!
----------------------------------------------------------------------------
---------------
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders]
"Cache"="x:\\temp\\%username%\\Temporary Internet Files"
"Cookies"="x:\\temp\\%username%\\Cookies"
********************************************************
This weeks sponsor - IDP ServerBoss
Restrict, Manage and Control Access to your applications
and other valuable Citrix, Windows NT, 2000
and 2003 Server Resources
http://www.serverboss.com/default.asp?partner=thethin
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************
This weeks sponsor - IDP ServerBoss
Restrict, Manage and Control Access to your applications
and other valuable Citrix, Windows NT, 2000
and 2003 Server Resources
http://www.serverboss.com/default.asp?partner=thethin
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
Other related posts: