autoexec.bat, config.sys in xp

V

V S Rawat

Is there any use of autoexec.bat or config.sys in xp?

of course, I still go to ms dos mode, and I find the prompt, and
the dircmd, and doskey very useful. So, I have asked it to run
autoexec.bat at start and it is doing that.

Is that of any use?
----------

Also, setting TMP/TEMP in autoexec.bat is not having any effect
in xp. Does it use those settings? I don't find any files made
in these folders.

how do I ask it to create temp files in these folders?
--------

If it doesn't read autoexec.bat, how do I give it the path of
java, perl etc.?

-------

How do I change the default locations of recent, temp etc.
folder which need to be cleaned periodically?
-----

My pc is essientially singer user pc. How can I ask it to remove
all other user accounts and keep just administrator?


--
 
B

Bob I

No. Use the autoexec.nt and config.nt to do this. Please see Start, Help
and Support, search term Autoexec.NT for more instruction links.
 
D

David H. Lipman

From: "V S Rawat" <[email protected]>

| Is there any use of autoexec.bat or config.sys in xp?
|
| of course, I still go to ms dos mode, and I find the prompt, and
| the dircmd, and doskey very useful. So, I have asked it to run
| autoexec.bat at start and it is doing that.
|
| Is that of any use?
| ----------
|
| Also, setting TMP/TEMP in autoexec.bat is not having any effect
| in xp. Does it use those settings? I don't find any files made
| in these folders.
|
| how do I ask it to create temp files in these folders?
| --------
|
| If it doesn't read autoexec.bat, how do I give it the path of
| java, perl etc.?
|
| -------
|
| How do I change the default locations of recent, temp etc.
| folder which need to be cleaned periodically?
| -----
|
| My pc is essientially singer user pc. How can I ask it to remove
| all other user accounts and keep just administrator?
|

NT based OS will only parse those files for envronmental variables. CONFIG.SYS and
AUTOEXEC.BAT are DOS constructs and winXP is not based upon DOS like Win9x/ME were.

For setting a environmental variable...
Right-click on "My Computer" --> Anvanced --> Environmental variables.

Create or modify a User or System variable. The 'path' is a System variable.
 
W

Wesley Vogel

From various sources...

Windows XP uses Config.nt and Autoexec.nt, not Config.sys or Autoexec.bat.

If you have a Config.sys or Autoexec.bat file XP will (mostly) ignore them.
Nothing in Config.sys will have any effect. Any line in Autoexec.bat that
launches a program or changes a directory will be ignored; the only lines in
Autoexec.bat that Windows XP will read are the lines that begin SET or PATH.
If ParseAutoexec is set to 1 in the registry.

In order to launch programs or change settings for DOS programs under
Windows XP, you must modify two files named Config.nt and Autoexec.nt,
typically found in the C:\Windows\System32 directory.

Config.nt is used for the same kind of tasks formerly performed by
Config.sys (loading device drivers, etc.). Autoexec.nt is used for the same
kind of tasks formerly performed by Autoexec.bat (launching memory-resident
programs, etc.) Only old-style 16-bit DOS programs can be run from
Autoexec.nt. You cannot use Autoexec.nt to run 32-bit Windows XP text-mode
programs like MODE or SUBST; these programs may be run in an ordinary batch
file, but not in Autoexec.nt.

When this value is enabled the variables declared in the Autoexec.bat file
will be parsed and included in the current user environment.

HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\Winlogon
Value Name: ParseAutoexec
Data Type: REG_SZ
Data: 0 or 1
0 : Ignores Autoexec.bat at logon.
1 : Parses Autoexec.bat at logon.

This has no effect on the parsing of AUTOEXEC.NT or CONFIG.NT by the MS-DOS
or 16-bit Windows environments (VDMs).

To add or change environment variables with Windows XP:
1. Right click on My Computer
2. Select Properties
3. Click on the Advanced tab
4. Click on the Environment Variables button
5. From here you can change it for the system or just the current user.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

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