Editing/Cleaning AutoExec.bat - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 06-26-2004, 12:22 AM   #1 (permalink)
Super Techie
 
Join Date: Mar 2004
Posts: 400
Default Editing/Cleaning AutoExec.bat

How would i go about editing and cleaning out some lines that are running on bootup through autoexec.bat?? Win98 system.

When i view autoexec through msconfig it shows me:

line1 : blank
line 2: rem - by windows network - c:\windows net start
line 3: blank w/pencil sign
line 4: blank w/pencil sign

when i view it through notepad it shows me a bunch of code and stuff. When i go to dos and type edit (pathtofile) autoexec.bat it shows me the same gobbled code that i see through notepad. Lines that actually are running on bootup i only see through msconfig.

I know little about autoexec. I've tried google searches but so far no real answers.

When the pc boots up it's trying to scan for boot viruses using a program that it does not have. It displays a series of errors and then hangs for 2 minutes before starting windows.

Any ideas???
__________________

__________________
The only \"intuitive\" interface is the nipple. After that, it\'s all learned. ;)
Ares is offline  
Old 06-26-2004, 04:50 AM   #2 (permalink)
Newb Techie
 
Join Date: Jun 2004
Posts: 22
Unhappy Check for the start up

If you are using windows 98, this may not from autoexec.bat.

I believe the anti-virus was registered on your startup.

Try this
for the START menu Click RUN then type
msconfig then OK.

on the sytem configuration utility select STARTUP. then search from the list of progra which your windows os executing during start up and search the name of the anti-virus, unchek it.

hope this may help
__________________

lexor is offline  
Old 06-26-2004, 12:31 PM   #3 (permalink)
Super Techie
 
Join Date: Mar 2004
Posts: 400
Default

Microbell, that was one of the first things i tried. The line (rem - windows network blah blah) doesn't show up when you view the autoexec through dos. You get a bunch of other stuff that doesn't appear when you view it through msconfig.

Lexor, i tried that too. Everything in the startup list associated with a virus program was disabled. Afterwards the anti virus program was uninstalled from the system. The problem is there are a few lines in auto exec that run on boot up, but i can only view them through msconfig. Msconfig does not let you delete a line , it only lets you clear a line's contents which just leaves a blank line witha pencil icon. The lines are still triggered when the unit boots up, even though it appears the lines are clear through msconfig (clearing it doesn't erase it).

The only logical thing i can think of is something in the registry. Like i said, editing in dos and editing any other way doesn't show me the lines that i need to edit. Replacing autoexec bat didn't do any good either.

I also want to add that although i've been told REM is for a remark, it appears to me that there is something else going on. When that rem statement was removed from the file, the pc could no longer communicate with it's network card. When that rem was added, the problem was fixed.
__________________
The only \"intuitive\" interface is the nipple. After that, it\'s all learned. ;)
Ares is offline  
Old 06-26-2004, 03:50 PM   #4 (permalink)
Ultra Techie
 
Join Date: Mar 2004
Posts: 807
Default

Quote:
Originally posted by Ares
I also want to add that although i've been told REM is for a remark, it appears to me that there is something else going on. When that rem statement was removed from the file, the pc could no longer communicate with it's network card. When that rem was added, the problem was fixed.
Like MicroBell told you, the comptuer will not process any lines in a batch file w/ a REM in front of it, it's more for the programmers benefit than anything else and purely for remarking purposes.

Quote:
Originally posted by Ares
The only logical thing i can think of is something in the registry. Like i said, editing in dos and editing any other way doesn't show me the lines that i need to edit. Replacing autoexec bat didn't do any good either.
It probably is something in the registry, but before you start fooling around w/ the registry, I would suggest lookin in your Windows start up folder. If that turns up nothing, again, follow MicroBell's suggestion and edit the autoexec.bat file through DOS.
Lone Wolf is offline  
Old 06-26-2004, 04:20 PM   #5 (permalink)
Newb Techie
 
Join Date: Jun 2004
Posts: 22
Default

you can try the System mechanic program it is a very power ful tool, that let you manage everything on your system and will detect system errors. you can download the free trial at download.com it may help
lexor is offline  
Old 06-26-2004, 04:25 PM   #6 (permalink)
Lord Techie
 
Join Date: May 2004
Location: Oklahoma
Posts: 5,280
Send a message via AIM to beedubaya
Default

With Win98, you don't even need an autoexec.bat unless you have a DOS based anti-virus or something that uses it to boot before Windows. You're pretty much safe even if you delete the file.
beedubaya is offline  
Old 06-27-2004, 01:45 AM   #7 (permalink)
Super Techie
 
Join Date: Mar 2004
Posts: 400
Default

Hmm. I've never used an autoexec file on my old 98 machine. This pc on the other hand is apparently using it.

I'm taking it back to it's owner tomorrow. For the most part it works now, although it shows a bunch of weird error messages when it boots up. The pc is in bad shape as it is. She gave it to me to clean up a task bar issue, which i did. The rest i did on my own, cleaning up about 25 different spyware programs she had and freeing up 20% more of her memory. I'm just going to tell her she needs a reformat (but she doesn't have the old driver disks and i doubt it would handle xp)... so i'm going to give it to her as it is and talk her into letting me build a unit for her. That's what she needs... to get rid of that piece of garbage. Thanks guys. It's a mystery to me. No one's suggestions helped. I didnt try any programs to clean it or repair it. It's not worth the hassle to me.
__________________

__________________
The only \"intuitive\" interface is the nipple. After that, it\'s all learned. ;)
Ares is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 04:14 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.