Re: Help with deletion of files in XP at bootup



programmernovice@xxxxxxxxx wrote:

Hi, I recently arrived at Windows XP after many years of Win98. In
Win98 I was able to insert 4 statements into Autoexec.bat file to
erase Cookies, Temp, History, and Temp. Internet Files from my drive
at bootup. XP has no such .bat file. I read here that it is
possible to accomplish the same in XP with something called a "batch
file",


Just to clarify, autoxec.bat *is* a batch file. If differs from other batch
files (all of which are identified as batch files by the extension .bat)
only by running automatically at startup (in Windows 98).

The others are OK if you want to delete them automatically, but deleting the
contents of the temp folder from autoexec.bat was a very bad thing to do in
Windows 98, and doing anything similar remains a bad thing to do in Windows
XP. That's because there are some program installations which work in two
steps. The first step concludes by writing temporary files and rebooting.
The second step starts automatically after rebooting and needs to find those
files there (and then deletes them when it's done). If they aren't there,
the installation will fail.

If you want to delete the other files automatically from a batch file, just
create a text file with Notepad, containing the same statements you used to
put into autoexec.bat, and save it with whatever name you want and the
extension .bat. In notepad, put the name.bat in quotation marks so Notepad
won't append an extra .txt. Either put that file into F:\Documents and
Settings\Your Use Name\Start Menu\Programs\Startup or put a shortcut to it
there. That will have it execute at startup.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup


or by modifying registry, etc. As I am totally new to this, I
would greatly appreciate a detailed description of how to set it up,
the proper commands to enter, the way to create or modify the
required executable files, etc.

An example of the commands in Win98 Autoexec file:
c:\windows\command\deltree /y c:\windows\cookies

That would eliminate the "cookies" file. This worked perfectly every
time, and Windows just re-created the deleted files.

All help greatly appreciated.


.



Relevant Pages

  • Re: %temp% Mystery
    ... MS-MVP Windows Shell/User ... It took me six months or a bit more, to realise there are 2 main temp ... System account. ... I just now opened one Word doc, copied one line and it left two folders ...
    (microsoft.public.windowsxp.general)
  • Re: %temp% Mystery
    ... Yes I know them well - most of the Windows temp are those ZLTs - I am still ... MS-MVP Windows Shell/User ... folders into which stuff is placed on a daily basis. ... System account. ...
    (microsoft.public.windowsxp.general)
  • Re: %temp% Mystery
    ... It took me six months or a bit more, to realise there are 2 main temp ... it or complacent - Windows can kick you in the ass with no warning. ... System account. ... I just now opened one Word doc, copied one line and it left two folders ...
    (microsoft.public.windowsxp.general)
  • Re: %temp% Mystery
    ... System account. ... In Windows 2000, when an application or service used the LoadUserProfile API ... The other temp in Windows still behaves as it always has. ... [[Programs sometimes store temporary information in a Temp folder. ...
    (microsoft.public.windowsxp.general)
  • Re: Outlook express generates wbk files in temp folder!
    ... really do much of anything in OE without two files being created in Win Temp! ... windows open at once and can literally SEE two or three of these files ... that the definition of temporary files or a temporary folder was just ... Temporary Internet Files (TIF). ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)

Loading