XP Pro, AUTOEXEC.BAT

K

KeithN

Just found out that AUTOEXEC.BAT does not launch with XP
Pro. I need to run it during boot up to delete a few LNK
and EXE files from a large group of workstations. Any
ideas? Thanks in advance.
 
B

Bruce Chambers

Greetings --

WinXP doesn't use AUTOEXEC.BAT or CONFIG.SYS. The empty files are
present simply to provide some backwards compatibility with legacy
applications.

To set environmental variables, Right-Click My Computer >
Properties > Advanced > Environment Variables > System Variables/New
(or Edit, as applicable). You can also add the appropriate line(s) to
C:\Windows\System32\Autoexec.nt and/or C:\Windows\System32\Config.nt.
To run programs on login, create a shortcut to the desired application
and place it in the pertinent Startup folder(s).


Bruce Chambers
--
Help us help you:



You can have peace. Or you can have freedom. Don't ever count on
having both at once. -- RAH
 
R

Rob Elder, MVP-Networking

XP Pro will use autoexec.bat but it loads at logon and only loads
environmental variables. Autoexec.nt and config.nt are only used for 16 bit
programs.

Try using local policy to run and startup script.
 
S

sanvilas

-----Original Message-----
XP Pro will use autoexec.bat but it loads at logon and only loads
environmental variables. Autoexec.nt and config.nt are only used for 16 bit
programs.

Try using local policy to run and startup script.




.
My message is not actually addressed to the problem
KeithN is having, but rather to the two experts who
replied. Does anyone knows how can I find a coopy
of "AUTOEXTENT.BAT" for the same Windows XP Professional?
As I mentioned in my request filed today, when I re-
install the program it says that it cannot read such a
file, and it quits! Thus, I cannot operate the computer.
Thanks in advance!
 
P

Pavel

The Autoexec.bat will not load with WindowsXP but if you must have
it.....simply place shortcut in Startup folder pointing to the Autoexec.bat
 
K

Ken Blake, MVP

In
Pavel said:
The Autoexec.bat will not load with WindowsXP but if you must have
it.....simply place shortcut in Startup folder pointing to the
Autoexec.bat



Although you *can* do that, and for many people doing so may be
satisfactory, it's important to note that that will not give the
same results as autoexec.bat did in Windows 9X. The autoexec.bat
in Windows 9X ran before Windows started; what you suggest runs
afterwards. Depending on what you're trying to accomplish, that
difference could be significant or not.

Also note that there's no particular reason to even use a batch
file this way. You could just put the constituent commands
directly into the startup folder. That's probably better, because
it makes those command smore visible instead of hiding them
within a batch file.
 
P

Pavel

I suppose you are right but all KeithN wanted was to delete few files and if
he is familiar with BAT files then BAT files will work. By the way, what is
this 'constituent' command and how do you add it in to the Startup folder? I
never heard of such a thing.
 

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