Windows Forum / Windows 98 / Setup / June 2006
Why does autoexec.bat not execute when window 98 start up?
|
|
Thread rating:  |
Eric - 02 Jun 2006 14:06 GMT Does anyone know why autoexec.bat does not execute when window 98 start up? I have added a few to clean the temp internet folder, such as DELTREE /y C:\CWIN98\tempor~1
but when window starts and I check this folder, and still find cookie there. It proves that autoexec.bat does not execute properly. Does anyone know what wrong it is for autoexec.bat file Thank you in advance Eric Choi
Noel Paton - 02 Jun 2006 14:37 GMT asked and answered elsewhere Please cross-post in the correct manner, rather than multi-posting.
 Signature Noel Paton (MS-MVP 2002-2006, Windows)
Nil Carborundum Illegitemi http://www.crashfixpc.com/millsrpch.htm
http://tinyurl.com/6oztj
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's
> Does anyone know why autoexec.bat does not execute when window 98 start > up? [quoted text clipped - 7 lines] > Thank you in advance > Eric Choi Bill Watt - 03 Jun 2006 02:46 GMT >Does anyone know why autoexec.bat does not execute when window 98 start up? >I have added a few to clean the temp internet folder, such as [quoted text clipped - 5 lines] >Thank you in advance >Eric Choi The folder looks incorrect. Should it be Win98 instead of CWin98? Or should it be Windows? Put a Pause statement at the end of the file, if it gets to the Pause the file executed.
Regards,
Bill Watt Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/
Eric - 03 Jun 2006 11:09 GMT Thank you for your reply
CWIN98 is the corrected filename for my computer, since anyone can rename it john or mary folder when they install the window.
Autoexec.bat contains following statement DELTREE /y C:\CWIN98\tempor~1
When I execute this file after window start-up, all files under the folder Temporary Internet Files are erased, but files will not be erased by executing Autoexec.bat when window start-up, does anyone have any suggestion? Thank everyone for any suggestion Eric
> >Does anyone know why autoexec.bat does not execute when window 98 start up? > >I have added a few to clean the temp internet folder, such as [quoted text clipped - 15 lines] > Bill Watt > Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/ Alan Edwards - 03 Jun 2006 12:38 GMT Noel gave you the answer in the other group you posted to. Cookies are not held in Temporary Internet Files, so deleting TIF can hardly remove them.
...Alan -- Alan Edwards, MS MVP Windows - Internet Explorer http://dts-l.org/index.html
>Thank you for your reply > [quoted text clipped - 29 lines] >> Bill Watt >> Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/ glee - 04 Jun 2006 18:18 GMT Apparently no one is paying any attention to that fact, Alan, as the replies to this non-issue keep rolling in. <rolls eyes>
 Signature Glen Ventura, MS MVP Shell/User, A+ http://dts-l.org/goodpost.htm
> Noel gave you the answer in the other group you posted to. > Cookies are not held in Temporary Internet Files, so deleting TIF can [quoted text clipped - 38 lines] > >> Bill Watt > >> Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/ Bill Watt - 05 Jun 2006 02:23 GMT >Apparently no one is paying any attention to that fact, Alan, as the replies to this >non-issue keep rolling in. <rolls eyes> Hi Glen,
Note that Eric said:
___________________________________________________ When I execute this file after window start-up, all files under the folder Temporary Internet Files are erased, but files will not be erased by executing Autoexec.bat when window start-up, does anyone have any suggestion? ______________________________________________________
Seems Autoexec.bat is not executing at boot but works when run manually. BTW I have cookies in the TIF folder, by default, I believe.
Regards,
Bill Watt Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/
glee - 05 Jun 2006 04:01 GMT > >Apparently no one is paying any attention to that fact, Alan, as the replies to this > >non-issue keep rolling in. <rolls eyes> [quoted text clipped - 13 lines] > manually. BTW I have cookies in the TIF folder, by default, I > believe. Hi Bill,
Yes, that is what Eric stated in a couple of his replies, but I don't believe that is an accurate accounting of what is occurring. Firstly, if you perform the command: "DELTREE /y C:\CWIN98\tempor~1" in Windows, the folder is immediately recreated along with the Content.IE5 subfolder containing the index.dat file. Now, if Eric will immediately reboot after that, without opening IE in the interim, he will find the cookies appearing there again....but they are only a mirror image of what is really in the Cookies folder. Also, if he opens IE after the Deltree of the TIF, the cookies will immediately reappear in the TIF when viewed in Windows Explorer.
The cookies do not really exist in the TIF.....do a DIR from DOS of the TIF and you will see what is really there. The cookies appear in Windows Explorer, but they are really in the Cookies folder.
His batch file *is* executing, and the TIF is being deleted at startup, but by the time Windows starts, the mirroring of the cookies is completed, and when he looks in Windows Explorer, he thinks nothing has happened.
 Signature Glen Ventura, MS MVP Shell/User, A+ http://dts-l.org/goodpost.htm
Bill Watt - 05 Jun 2006 06:14 GMT >> >Apparently no one is paying any attention to that fact, Alan, as the replies to >this [quoted text clipped - 34 lines] >time Windows starts, the mirroring of the cookies is completed, and when he looks in >Windows Explorer, he thinks nothing has happened. Good explanation Glen. Eric indicated he had other Deltree statements as well but I guess they didn't include the contents of the Cookies folder.
I deltree the TIF folder after Windows loads and it gets rid of everything except the empty Content.IE5 folder unless I start IE then Cookies (personalized) and the 4 backup folders return as you say. But the folder does not accumulate junk.
As I said in my follow up to my post I don't think deleting TMP files from DOS is a good idea anyway. He has not indicated if other statements delete TMP files specifically but for a "cleanup" they probably should be after Windows loads.
Regards,
Bill Watt Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/
Bill Watt - 04 Jun 2006 03:49 GMT >Thank you for your reply > [quoted text clipped - 9 lines] >Thank everyone for any suggestion >Eric Eric,
Did you try putting a Pause line at the end of the file to make sure it ran at boot? Go into Msconfig under the General tab and make sure Autoexec.bat is checked. If it's not checked it won't run at Startup but you can still run it manually.
Start > Run and enter Msconfig.
Regards,
Bill Watt Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/
Eric - 05 Jun 2006 02:29 GMT Press any key to continue ... Pause command performs nothing here. I have checked that in Msconfig under the General tab, Autoexec.bat is checked.
When I execute this file after window start-up, all files under the folder Temporary Internet Files are erased, but files will not be erased by executing Autoexec.bat when window start-up, does anyone have any suggestion? Thank everyone for any suggestion Eric
> Eric, > [quoted text clipped - 9 lines] > Bill Watt > Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/ Bill Watt - 05 Jun 2006 03:47 GMT >Press any key to continue ... >Pause command performs nothing here. [quoted text clipped - 6 lines] >Thank everyone for any suggestion >Eric Running in DOS may be different so try adding \*.* Try DELTREE /Y C:\CWIN98\TEMPOR~1\*.*
I use IF EXIST C:\WINDOWS\TEMPOR~1\*.* DELTREE /Y C:\WINDOWS\TEMPOR~1\*.*
If no help copy paste your line/s into Notepad and save it as Clear.bat. Put a shortcut to it in C:\CWIN98\Start Menu\Programs\StartUp
When saving the file select Save as Type "All files" then save as Clear.bat so you don't end up with a *.txt extension.
Regards,
Bill Watt Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/
Bill Watt - 05 Jun 2006 04:59 GMT Eric,
Not a good idea to delete tmp files before windows loads anyway. Program installs often use tmp files to complete the install on the next restart or boot. If they have been deleted the install will fail. Use a *.bat file as I suggested and put it in the Startup folder. That folder is executed after the *.tmp files have been used and they are no longer needed. Remove the Deltree lines from the Autoexec.bat file and put them in a *.bat file like Clear.bat.
Or, for more control, put a shortcut to the *.bat file on the desktop and drag it into the Quick Launch area and run it manually after Windows loaded.
Regards,
Bill Watt ___________________________________________________
>>Press any key to continue ... >>Pause command performs nothing here. [quoted text clipped - 24 lines] >Bill Watt >Win98 Computer Help & Other Information http://home.ptd.net/~bwatt/ dadiOH - 04 Jun 2006 13:48 GMT > Thank you for your reply > [quoted text clipped - 18 lines] >>> cookie there. It proves that autoexec.bat does not execute properly. >>> Does anyone know what wrong it is for autoexec.bat file A. Make sure autoexec.bat is enabled in MSCONFIG - OR - B. Put a shortcut to it in Programs\StartUp
 Signature dadiOH ____________________________
dadiOH's dandies v3.06... ...a help file of info about MP3s, recording from LP/cassette and tips & tricks on this and that. Get it at http://mysite.verizon.net/xico
Eric - 05 Jun 2006 02:31 GMT Thank everyone for suggestion Put a shortcut to it in Programs\StartUp is not right. Since autoexec.bat should be executed before window start-up. Thank you Eric
> > Thank you for your reply > > [quoted text clipped - 22 lines] > - OR - > B. Put a shortcut to it in Programs\StartUp Noel Paton - 05 Jun 2006 10:56 GMT WHY don't you accept that Cookies are NOT stored in the TIF - they are stored in the Cookies folder - of which the TIF in Windows has site through the index.dat file in the Cookies folder and/or the re-created index.dat file in the TIF folder. Unless you delete the contents of the Cookies folder you will NEVER remove the cookies from the view of TIF that Windows gives you (except by removing the System Attribute from the TIF folder - which will break the TIF functionality anyhow)
 Signature Noel Paton (MS-MVP 2002-2006, Windows)
Nil Carborundum Illegitemi http://www.crashfixpc.com/millsrpch.htm
http://tinyurl.com/6oztj
Please read http://dts-l.org/goodpost.htm on how to post messages to NG's
> Thank everyone for suggestion > Put a shortcut to it in Programs\StartUp is not right. [quoted text clipped - 28 lines] >> - OR - >> B. Put a shortcut to it in Programs\StartUp
|
|
|