January 21, 200818 yr Hello together,is it possible to define a tempfolder for all users (like c:\temp)?The reason is, that I wish to have a C:\Temp folder for all users and not x Tempfolders in the profile from the users.I´m sure there was a reg. entry. But I´m unable to find the posting...Edit (found my old posting):http://www.msfn.org/board/Move-Tempfolder-...ded-t42854.html Edited January 21, 200818 yr by Bastian_W
January 22, 200818 yr Make a batch file which sets the %TEMP% and %TMP% environment variables, and add it to HKLM\Software\Microsoft\Windows\CurrentVersion\Run.
January 22, 200818 yr Here is a method you can use as part of your unattended procedure; It uses reg.exe from an NT command script to set the locations for all the PC Users to the same location as the default System Temp.@Echo off&SetlocalSet "LK_=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"(Set VD_=/t REG_EXPAND_SZ /d "%%%%SystemRoot%%%%\Temp" /f^>Nul)For %%? In (T TE) Do Reg add "%LK_%" /v %%?MP %VD_%Pushd %UserProfile%\..\Default UserReg load HKU\TempHiv NTUSER.DAT>Nul 2>&1||Goto :EofFor %%? In (T TE) Do Reg add HKU\TempHiv\Environment /v %%?MP %VD_%:Un_Reg unload HKU\TempHiv>Nul 2>&1||Goto Un_Just change SystemRoot for SystemDrive if you prefer the location to be in the root of the drive instead!
April 18, 200818 yr Author Hello YzöwlHello RubySoftwaresorry for the delay... I didn´t get a notification about this topic :-(.Wouldn´t it possible to put a settemp.cmd into:C:\Documents and Settings\All Users\Start Menu\Programs\Startupwhich set and overwrite the temp variables in the reg.?
Create an account or sign in to comment