Home / Microsoft / Microsoft DOS / User Specific AUTOEXEC.bat
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: User Specific AUTOEXEC.bat  (Read 466 times)
Sigma
Guest
« on: December 11, 2005, 10:40:03 AM »

I have a quick question regarding the AUTOEXEC.bat file on my Windows XP computer.  Currently on my computer there are 2 user profiles:  USER1  and  USER2.  How would I set it up so that whenever  USER2  logs on, a batch file:
(say ... PROMPT.cmd) would automatically run.  Does each user have its own AUTOEXEC or does one AUTOEXEC govern all users?

If there is only 1 I can write an if statementfor it:

if %username%==USER2 (...)

Please help
         Sigma 8)

ps. both users have admin status.
IP logged
Sidewinder
Guru



Thanked: 97
Posts: 4,341

Experience: Familiar
OS: Windows 7

« Reply #1 on: December 11, 2005, 04:02:06 PM »

Actually there is none on a XP machine. XP uses the autoexec.nt file to initialize the MS-DOS Environment (16 bit subsystem). There is also a CMD environment (32 bit subsystem) which is initialized from the Windows settings.

Which one are you referring to? You can try using IF statements in the autoexec.nt and see what happens. If it's only the prompt you're interested in, try right clicking the icon used to start the program and  choose properties. For CMD change the Start in: entry; for MS-DOS change the Working: entry on the program tab.

Hope this helps. 8)

PS. It may look like DOS, it may even quack like DOS, but it's not DOS. Just an emulated version thereof.
IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
GX1_Man
Moderator
Mastermind


Thanked: 23
Posts: 18,215

Because beige is beautiful !!!

« Reply #2 on: December 11, 2005, 06:48:30 PM »

Quote
It may look like DOS, it may even quack like DOS, but it's not DOS. Just an emulated version thereof.


People just don't seem to grasp this concept do they?
IP logged

Please post as much information about your computer, operating system, and problem as possible, what happened prior to problems, etc. Too much info is OK, too little is pointless! Don't just say "My computer doesn't work. What's wrong?"
patio
Moderator
Genius



Thanked: 1069
Posts: 11,354

Experience: Beginner
OS: Windows 7


Maud' Dib

« Reply #3 on: December 11, 2005, 09:17:51 PM »

I vote we start a "Command Prompt" sub-forum...
IP logged

   
"
All generalizations are false, including this one.  "
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / User Specific AUTOEXEC.bat « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.107 seconds with 20 queries.