Find Autoexec.bat in Windows XP | Troubleshoot Now

  • Thread starter Clausius2
  • Start date
In summary, the author was not able to find the autoexec.bat file in Windows XP, and he needs it to modify a script.
  • #1
Clausius2
Science Advisor
Gold Member
1,440
7
Where's Autoexec.bat file in Windows XP? I need to modify it but I have not been able to find it. Going on search doesn't work too. It isn't at System32 folder. It seems my operative system hasn't got this file. Could it be possible?
 
Computer science news on Phys.org
  • #2
I always thought autoexec.bat was in C:\

From what I've read on the internet, windows xp doesn't use autoexec.bat anymore, but you can still create it if you want to.
 
  • #3
mmmm...I see. So you think it isn't used in WXP. I don't know what I'm going to do now... Let me think. Anyway thanks and merry christmas.
 
  • #4
Last edited by a moderator:
  • #5
What do you need autoexec to do? If all you need to do is run a program at startup or set environment variables, that can be done without it.
 
  • #6
master_coda said:
What do you need autoexec to do? If all you need to do is run a program at startup or set environment variables, that can be done without it.

Well, I don't know well what I have to do. I have a meshing tool called Gambit. It only works under MSDOS, so I have to make a modification (as a friend told me) writting in Autoexec:

"set PATH=%PATH%;c:\fluent.inc\ntbin\ntx86"

to help it to be boosted.

Where can I make this modification if not in Autoexec?
 
  • #7
Select ->Start->Control Panel->System

Pick the advanced tab in System and click the environment variables button.

Select "path" in the variables window and click edit.
Add your stuff to the end.
Be careful not to mess with the rest of the path or things might stop working.

Note: The DOS compatibility box is poor in win 2000. Much worse than win NT.
XP may be even worse, so your stuff may not run anyway.
I boot to win 98 for a lot of old programs, but a lot of the newer hardware simply will not support the old DOS calls, so now I keep an old machine as well.
 
  • #8
NoTime said:
Select ->Start->Control Panel->System

Pick the advanced tab in System and click the environment variables button.

Select "path" in the variables window and click edit.
Add your stuff to the end.
Be careful not to mess with the rest of the path or things might stop working.

Note: The DOS compatibility box is poor in win 2000. Much worse than win NT.
XP may be even worse, so your stuff may not run anyway.
I boot to win 98 for a lot of old programs, but a lot of the newer hardware simply will not support the old DOS calls, so now I keep an old machine as well.

It doesn't work. Thanks anyway.
 
  • #9
simply make bat file using notepad,
1>Open Notepad
2>type in the file : set PATH=%PATH%;c:\fluent.inc\ntbin\ntx86
3> in the next line : type the complete path to your application exe file
e.g if gambit.exe is in c:\gambit folder then type
C:\gambit\gambit
4> save the file as <blah>.bat (the name could be anything u want but the extension should be bat)
5> you can run your program now by double clicking this bat file.
this bat file will execute your program as well as set the path initially.

However sometimes if your environment variable size is exceeding limits, the path variable may not be set. In which case u will have to increase it. Thats done by
1> right click on the bat file
2> click properties
3> click the memory tab
4> open the initial environment roll-out
5> choose the max value that should be 4096
6> ok it

Now your environment variables will be set.

-- AI
P.S -> If u want more details regards this, post back and i will explain a bit more
 
  • #10
Clausius2 said:
It doesn't work. Thanks anyway.
There is a decent chance the program can't run on XP. Try www.bootdisk.com and booting to a dos floppy (and running the program off a disk).
 
  • #11
Thanks all, but I have decided I'm not going to play with system files for a long time. I have had to format my hard disk this time. :cry:
 

1. How do I find the Autoexec.bat file in Windows XP?

To find the Autoexec.bat file in Windows XP, follow these steps:

1. Open the "Start" menu and click on "My Computer".

2. Navigate to the C:\ drive.

3. Click on the "Tools" menu and select "Folder Options".

4. In the "View" tab, make sure the option to "Show hidden files and folders" is checked.

5. Click "Apply" and then "OK".

6. Look for the Autoexec.bat file in the C:\ drive. If it is not there, it may not exist on your system.

2. What is the purpose of the Autoexec.bat file in Windows XP?

The Autoexec.bat file is a batch file that is executed automatically when a computer boots up. It is used to run commands and set system variables that are necessary for the system to function properly. In Windows XP, the Autoexec.bat file is not as commonly used as in older versions of Windows, but it can still be used to run certain commands and programs at startup.

3. How can I troubleshoot issues with the Autoexec.bat file in Windows XP?

If you are experiencing issues with the Autoexec.bat file in Windows XP, try the following troubleshooting steps:

1. Check if the file exists in the C:\ drive. If it is missing, you may need to create a new one.

2. Check if the file is properly formatted and contains valid commands. Errors in the file can cause issues.

3. If you have made changes to the file recently, try reverting to a previous version that was working.

4. Make sure the file is being executed at startup. You can check this in the "System Configuration" utility in Windows XP.

4. Can I edit the Autoexec.bat file in Windows XP?

Yes, you can edit the Autoexec.bat file in Windows XP. However, it is recommended to do so only if you have knowledge of batch scripting and the commands you are adding or modifying. Changes to the file can potentially cause system errors and should be done with caution.

5. How do I disable the Autoexec.bat file in Windows XP?

To disable the Autoexec.bat file in Windows XP, follow these steps:

1. Open the "Start" menu and click on "Run".

2. Type "msconfig" and press Enter.

3. In the "System Configuration" utility, go to the "Startup" tab.

4. Uncheck the box next to "Autoexec.bat" and click "Apply".

5. Click "OK" and restart your computer for the changes to take effect.

Similar threads

Replies
19
Views
1K
  • Computing and Technology
Replies
13
Views
2K
  • Computing and Technology
Replies
30
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
893
Replies
39
Views
9K
  • Computing and Technology
2
Replies
37
Views
5K
Replies
2
Views
1K
  • Computing and Technology
Replies
4
Views
3K
  • Computing and Technology
Replies
5
Views
2K
  • Computing and Technology
Replies
3
Views
1K
Back
Top