P
Primal Oooze
XP creates an empty autoexec.bat file in the root directory but doesn't
execute it on startup (unlike win98.) Is there a way to make it execute?
execute it on startup (unlike win98.) Is there a way to make it execute?
David H. Lipman said:From: "Primal Oooze" <[email protected]>
| XP creates an empty autoexec.bat file in the root directory but doesn't
| execute it on startup (unlike win98.) Is there a way to make it execute?
|
No. WinXP doesn't use AUTOEXEC.BAT.
About the only thing it may do is parse SET commands in AUTOEXEC.BAT and load them into the
Registry.
David H. Lipman said:From: "Primal Oooze" <[email protected]>
| I'd like to have it execute on boot up to delete all of the left over
| cookies and the index.dat file in the cookies folder. Once windows boots up
| it won't allow deletion of the index.dat file. Without deleting that all of
| the cookies are recreated.
| I put the following command in the autoexec file:
|
| del C:\docume~1\myid\cookies\*.* /q
|
| Now I need it to execute on boot up. It worked fine in win98
|
You need to understand the differences between Win9x and WinME and the NT family which is
NT4, Win2K, WinXP and Win2003 Server.
WinXP and other NT based OS don't work that way !
in actuallity there is no need to delete cookies as you want to do. It is not that much of
a threat. However, if you really want to there are ways to do it.
Create a batch file that contains the commands you want and save it as DELCOOK.BAT and save
it in c:\windows
Copy the text between the dashes ( ----------- ) and paste it into notepad. In notepad, go
to File --> save as
and change "save as type" to "All Files", as for the name of the file call it;
c:\runbatch.reg
Browse to c:\ and you will see runbatch.reg . Double-click on the file and allow it to
merge into the Registry. Now when you logon to the PC, it will run that batch file for you.
-----------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"DEL Cookies"="c:\\windows\\delcook.bat"
I suggest you rename it to anything other than autoexec.bat.Primal said:Thanks for the time and effort. I saved it in my file of
programming tips. But just before I read your reply, I
thought I'd try putting a shortcut to autoexec.bat in
"\Start Menu\Programs\Startup\" and lo and behold it
worked.
I wanted a way to delete the cookies because the Trend
Micro Anti-Spyware 3.0 I've been trying out is always
telling me to delete a bunch of "high risk" cookies, so
what the heck, just delete them all : )
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.