|
#1
|
|||
|
|||
|
How can I automatically empty the contents of my Temporary folder when I
logoff ? (I'm not talking about Tempory Internet Files) -- Michael Tissington http://www.oaklodge.com http://www.sqlview.net |
|
#2
|
|||
|
|||
|
Make a batch file with the following
cd %tmp% del /q *.* cd %windir%\temp del /q *.* And place the batch file or a shortcut in %windir%\system32\GroupPolicy\Machine\Scripts\Shut down Or place a shortcut to the batch file in %homepath%\Start Menu\Programs\Startup to clean out the temp files on boot. -- Hope this helps. Let us know. Wes MS-MVP Windows Shell/User In news:OGAPRU$DGHA.2912@tk2msftngp13.phx.gbl, Michael Tissington <mtissington@newsgroups.nospam> hunted and pecked: > How can I automatically empty the contents of my Temporary folder when I > logoff ? > > (I'm not talking about Tempory Internet Files) > > -- > Michael Tissington > http://www.oaklodge.com > http://www.sqlview.net |
|
#3
|
|||
|
|||
|
On Mon, 2 Jan 2006 15:34:24 -0800, "Michael Tissington" <mtissington@newsgroups.nospam> wrote:
>How can I automatically empty the contents of my Temporary folder when I >logoff ? > >(I'm not talking about Tempory Internet Files) Shutdown/Shutdown script (XP Pro only): Double-click "My Computer", double-click the C:\ drive. Right-click a blank area, select "New Text Document". Double-click the "New Text Document.txt" Copy & paste the below into the text file: (Change "C:\Temp" to the location of YOUR temp folder) rd /s /q C:\Temp md C:\Temp Save the file, then rename it to deltmp.bat NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents (including subdirectories) NOTE "md" recreates the tree (empty) Click Start, Run and enter GPEDIT.MSC Go to Computer Configuration, Windows Settings, Scripts, Shutdown. Browse to the location you saved the "deltmp.bat" file, and select it. |
|
#4
|
|||
|
|||
|
Thanks
-- Michael Tissington http://www.oaklodge.com http://www.sqlview.net "Unk" <not@aol.com> wrote in message news:95hjr1l3pbr84vlkr1h561bfa1go4v4bdb@4ax.com... > On Mon, 2 Jan 2006 15:34:24 -0800, "Michael Tissington" > <mtissington@newsgroups.nospam> wrote: > >>How can I automatically empty the contents of my Temporary folder when I >>logoff ? >> >>(I'm not talking about Tempory Internet Files) > > Shutdown/Shutdown script (XP Pro only): > > Double-click "My Computer", double-click the C:\ drive. > Right-click a blank area, select "New Text Document". Double-click the > "New Text Document.txt" > Copy & paste the below into the text file: (Change "C:\Temp" to the > location of YOUR temp folder) > > rd /s /q C:\Temp > md C:\Temp > > Save the file, then rename it to deltmp.bat > > NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents > (including subdirectories) > NOTE "md" recreates the tree (empty) > > > Click Start, Run and enter GPEDIT.MSC > Go to Computer Configuration, Windows Settings, Scripts, Shutdown. > Browse to the location you saved the "deltmp.bat" file, and select it. > > > |
|
#5
|
|||
|
|||
|
Michael,
See also: Alter the "LastAccess" value for cleaning the Temporary files using Disk Cleanup utility: http://windowsxp.mvps.org/cleantemp.htm -- Ramesh, Microsoft MVP Windows XP Shell/User Windows XP Troubleshooting http://www.winhelponline.com "Michael Tissington" <mtissington@newsgroups.nospam> wrote in message news:uPpblGDEGHA.1028@TK2MSFTNGP11.phx.gbl... Thanks -- Michael Tissington http://www.oaklodge.com http://www.sqlview.net "Unk" <not@aol.com> wrote in message news:95hjr1l3pbr84vlkr1h561bfa1go4v4bdb@4ax.com... > On Mon, 2 Jan 2006 15:34:24 -0800, "Michael Tissington" > <mtissington@newsgroups.nospam> wrote: > >>How can I automatically empty the contents of my Temporary folder when I >>logoff ? >> >>(I'm not talking about Tempory Internet Files) > > Shutdown/Shutdown script (XP Pro only): > > Double-click "My Computer", double-click the C:\ drive. > Right-click a blank area, select "New Text Document". Double-click the > "New Text Document.txt" > Copy & paste the below into the text file: (Change "C:\Temp" to the > location of YOUR temp folder) > > rd /s /q C:\Temp > md C:\Temp > > Save the file, then rename it to deltmp.bat > > NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents > (including subdirectories) > NOTE "md" recreates the tree (empty) > > > Click Start, Run and enter GPEDIT.MSC > Go to Computer Configuration, Windows Settings, Scripts, Shutdown. > Browse to the location you saved the "deltmp.bat" file, and select it. > > > |
|
#6
|
|||
|
|||
|
On Mon, 02 Jan 2006 20:14:59 -0500, Unk <not@aol.com> wrote: >On Mon, 2 Jan 2006 15:34:24 -0800, "Michael Tissington" <mtissington@newsgroups.nospam> wrote: > >>How can I automatically empty the contents of my Temporary folder when I >>logoff ? >> >>(I'm not talking about Tempory Internet Files) > >Shutdown/Shutdown script (XP Pro only): > >Double-click "My Computer", double-click the C:\ drive. >Right-click a blank area, select "New Text Document". Double-click the "New Text Document.txt" >Copy & paste the below into the text file: (Change "C:\Temp" to the location of YOUR temp folder) > >rd /s /q C:\Temp >md C:\Temp > >Save the file, then rename it to deltmp.bat > >NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents (including subdirectories) >NOTE "md" recreates the tree (empty) > > >Click Start, Run and enter GPEDIT.MSC >Go to Computer Configuration, Windows Settings, Scripts, Shutdown. >Browse to the location you saved the "deltmp.bat" file, and select it. > > Beware that some software when first installed requires the temp files on the first boot. Ask me how I know. |
|
#7
|
|||
|
|||
|
I know how you know. Same way that I know. ;-)
-- Hope this helps. Let us know. Wes MS-MVP Windows Shell/User In news:3p3mr1pf64auclncm8sphbooqm0jtkd562@4ax.com, RW <none@none.com> hunted and pecked: > On Mon, 02 Jan 2006 20:14:59 -0500, Unk <not@aol.com> wrote: > >> On Mon, 2 Jan 2006 15:34:24 -0800, "Michael Tissington" >> <mtissington@newsgroups.nospam> wrote: >> >>> How can I automatically empty the contents of my Temporary folder when I >>> logoff ? >>> >>> (I'm not talking about Tempory Internet Files) >> >> Shutdown/Shutdown script (XP Pro only): >> >> Double-click "My Computer", double-click the C:\ drive. >> Right-click a blank area, select "New Text Document". Double-click the >> "New Text Document.txt" Copy & paste the below into the text file: >> (Change "C:\Temp" to the location of YOUR temp folder) >> >> rd /s /q C:\Temp >> md C:\Temp >> >> Save the file, then rename it to deltmp.bat >> >> NOTE "rd" removes the entire tree "C:\Temp" and ALL it's contents >> (including subdirectories) >> NOTE "md" recreates the tree (empty) >> >> >> Click Start, Run and enter GPEDIT.MSC >> Go to Computer Configuration, Windows Settings, Scripts, Shutdown. >> Browse to the location you saved the "deltmp.bat" file, and select it. >> >> > > > Beware that some software when first installed requires the temp files > on the first boot. Ask me how I know. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Deleting Empty Folders in ‘My Music’ Folder | Galley | Windows XP Music | 0 | 01-05-2006 07:38 AM |
| Keeping backup of my pictures in my order | Gladys222 | Windows XP Photos | 10 | 01-05-2006 07:08 AM |
| xp pro won't boot C:\WINDOWS folder is empty | Jonathan | Windows XP Perform Maintain | 2 | 01-05-2006 05:59 AM |
| One-way connection: networked XP/2000 PC's | Cheryl | Windows XP Network Web | 22 | 01-05-2006 04:11 AM |
| Folder View | Donaldo | Windows XP General | 3 | 01-05-2006 02:35 AM |