autoexec.bat doesn't execute

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?
 
D

David H. Lipman

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.
 
P

Primal Oooze

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.

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
 
D

David H. Lipman

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"
 
D

David H. Lipman

Addendum:

I should also state that any changes you want to make should be by editing;
c:\windows\DELCOOK.BAT
 
P

Primal Oooze

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"


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 : )
 
D

David H. Lipman

From: "Primal Oooze" <[email protected]>


| 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 : )
|

That'll also work as you can see.

BTW: Here is a tool that I wrote that can help tyou scan for viruses...


Download MULTI_AV.EXE from the URL --
http://www.ik-cs.com/programs/virtools/Multi_AV.exe

It is a self-extracting ZIP file that contains the Kixtart Script Interpreter {
http://kixtart.org Kixtart is CareWare } 4 batch files, 6 Kixtart scripts, one Link
(.LNK) file, a PDF instruction file and two utilities; UNZIP.EXE and WGET.EXE. It will
simplify the process of using; Sophos, Trend, Kaspersky and McAfee Anti Virus Command
Line Scanners to remove viruses, Trojans and various other malware.

C:\AV-CLS\StartMenu.BAT -- { or Double-click on 'Start Menu' in C:\AV-CLS}
This will bring up the initial menu of choices and should be executed in Normal Mode.
This way all the components can be downloaded from each AV vendor's web site.
The choices are; Sophos, Trend, McAfee, Kaspersky, Exit this menu and Reboot the PC.

You can choose to go to each menu item and just download the needed files or you can
download the files and perform a scan in Normal Mode. Once you have downloaded the files
needed for each scanner you want to use, you should reboot the PC into Safe Mode [F8 key
during boot] and re-run the menu again and choose which scanner you want to run in Safe
Mode. It is suggested to run the scanners in both Safe Mode and Normal Mode.

When the menu is displayed hitting 'H' or 'h' will bring up a more comprehensive PDF help
file.

To use this utility, perform the following...
Execute; Multi_AV.exe { Note: You must use the default folder C:\AV-CLS }
Choose; Unzip
Choose; Close

Execute; C:\AV-CLS\StartMenu.BAT
{ or Double-click on 'Start Menu' in C:\AV-CLS }

NOTE: You may have to disable your software FireWall or allow WGET.EXE to go through your
FireWall to allow it to download the needed AV vendor related files.

* * * Please report back your results * * *
 
E

Enkidu

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 : )
I suggest you rename it to anything other than autoexec.bat.
*Any* batch file in that directory will get executed on boot
and 'autoexec.bat' is a standard name of a system file
pre-Windows 2000.

Cheers,

Cliff
 

Ask a Question

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.

Ask a Question

Top