autoexec.nt in Windows XP not used..?

  • Thread starter Thread starter Jens
  • Start date Start date
J

Jens

Hi all

I am trying to create an alias in Windows XP.
I would like my command line interface to understand the
UNIX "ls" as Windows "dir".
So, wht i am doing is to put the line doskey ls=dir in
autoexec.nt located in %windir%/system32/.
But it dosent seems to work..

When starting a command line from start - run cmd, and
then typing doskey ls=dir it is working just fine.. but
only for that window and that session...
What is the right way to do this??

Regards
Jens
 
Hi Jens,

Try adding it as a system variable. Control Panel/System/Advanced tab, click
on "environmental variables", add it to the system variables here. See if it
helps.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Win9x
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone
 
Only Dos and Win 16 programs use this file. The command prompt in XP is a Windows 32 bit program, just like Word or Excel - these programs do not use autoexec.nt
 
Hi Rick and thanks for your answer!

How do i add my environmental variable so that ls becomes
equal to dir..?

Need an example please...

Regards
Jens
-----Original Message-----
Hi Jens,

Try adding it as a system variable. Control
Panel/System/Advanced tab, click
 
Put in a shortcut
cmd /k YourBatFileName

With YourBatFileName having your definitions in it. Or if just one

cmd /k doskey ls=dir
 
Sorry.. still dont get it...
What is the Variable name and what is the variable value??

Name:cmd/k Vlaue:doskey ls=dir ??
Or?

Regards
Jens
 
Jens said:
I am trying to create an alias in Windows XP.
I would like my command line interface to understand the
UNIX "ls" as Windows "dir".
So, wht i am doing is to put the line doskey ls=dir in
autoexec.nt located in %windir%/system32/.
But it dosent seems to work..

When starting a command line from start - run cmd, and
then typing doskey ls=dir it is working just fine.

DOSKey facilities are inbuilt in cmd.exe and you can't load a different
instance through autoexec.nt
 
Back
Top