| |
ChrisMB
Posts: 1
Score: 0
Joined: 7/27/2004
From: New Zealand
Status: offline
|
Hi Folks! I'm a newbie to scripting but this is what I'm trying to do...and my script so far: I am trying to write a script for a corporate environment that will change the default location for Outlook attachments from C:\Documents and Settings\username\Local Settings\Temporary Internet Files\OLK** to point to the User profile Temp directory (eg. C:\Documents and Settings\username\Local Settings\Temp\OLK**) If I use the environment variable %USERPROFILE% Outlook reverts to the default directory (Temporary Internet Files), but if I specify the username, it will work. The script so far: ---------------------------------------------------------------------- Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite "HKCU\Software\Microsoft\Office\9.0\Outlook\Security", 1 ,"REG_EXPAND_SZ" WshShell.RegWrite "HKCU\Software\Microsoft\Office\9.0\Outlook\Security\OutlookSecureTempFolder", "%USERPROFILE%\Local Settings\Temp\OLK8\" ---------------------------------------------------------------------- I don't want to specify the username because I need to run this on about 40 pc's. Does anyone have any idea how I can get around this? It would be much appreciated! Regards, Chris
|
|