• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1023
  • Last Modified:

Autoexec.bat not running.....

We upgraded a windows 98 pc to windows xp.  Now the OS is not running the autoexec.bat file.  Any ideas?  

Thanks!
0
Quetysis
Asked:
Quetysis
  • 2
  • 2
  • 2
  • +1
4 Solutions
 
ComputronCommented:
What part is not running ? Is it an enviroment variable ?

You can add one like this
Control Panel -> System
Click on the 'Advanced' tab.
Click 'Environment Variables'
Find 'Path' in the list of System Variables and click 'Edit.'
0
 
MiguelSilvestreCommented:
Hi Quetysis,

Autoexec.bat aren't used at all in Windows XP and higher.
Miguel
0
 
QuetysisAuthor Commented:
It appears as if the OS is not running the autoexec.bat file at boot.  I ran a test by putting a echo and redirect to a text file.  When I run the bat file manually the text file is created, when I delete the file and reboot, the file is never created.  I am trying to avoid the environment variable option for now, but will use as a last resort.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ComputronCommented:
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
To clarify MiguelSilvestre's comment, Autoexec.bat is not used in NT-based Windows operating systems, including Windows NT 3.1, 3.5, 3.51, 4.0, Windows 2000, 2003, and XP.

There is Autoexec.NT and CONFIG.NT in the C:\Windows\system32 folder, but they are ONLY used when you open a command prompt and not when Windows boots.

If you explain what your autoexec.bat file did, we might be able to help you get the same results.

One possibility, add a login script to your user accounts - that will act like it.
0
 
QuetysisAuthor Commented:
My autoexec.bat file was adding some directories to the system's path.  If I really need to use an environment variable I will but I thought I would see if anyone had any other ideas.  Anymore input would be appreciated, otherwise,  I think I'll go with the env var.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I would recommend reviewing this:
http://vlaurie.com/computers2/Articles/environment.htm

You could specify the path adjustments in AUTOEXEC.NT, but they would only apply to command prompts, when opened.  

Your best bet is to use a login script to modify the path environment variable.  The article I provide above discusses using SETX and the registry to do this.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now