How to make macros be there when I call the command prompt?

  • Thread starter Thread starter Jack Crane
  • Start date Start date
J

Jack Crane

With Win 98 I used to have a bunch of handy, simple DOS macros, such as
"py" for pinging yahoo.com. With Win 98 I put them in autoexec.bat.

I've tried putting the macros, such as "doskey py=ping yahoo.com" (no
quotes) in autoexec.nt and rebooting, but they work only when I reenter
them each time I call the Command Prompt (the "DOS" window).

Thanks,

Jack
 
Jack Crane said:
With Win 98 I used to have a bunch of handy, simple DOS macros, such as
"py" for pinging yahoo.com. With Win 98 I put them in autoexec.bat.

I've tried putting the macros, such as "doskey py=ping yahoo.com" (no
quotes) in autoexec.nt and rebooting, but they work only when I reenter
them each time I call the Command Prompt (the "DOS" window).

Create a file with all the macros in it. Let's say c:\doskeymacros.txt

Then add this REG_SZ as the data for one of these registry keys
doskey /MACROFILE=c:\doskeymacros.txt

(allusers) HKEY_LOCAL_MACHINE\Software\Microsoft\Command
Processor\AutoRun

and/or

(curent user only) HKEY_CURRENT_USER\Software\Microsoft\Command
Processor\AutoRun

Each time you start an instance of CMD then the macros file will load.
 
(allusers) HKEY_LOCAL_MACHINE\Software\Microsoft\Command
Processor\AutoRun

and/or

(curent user only) HKEY_CURRENT_USER\Software\Microsoft\Command
Processor\AutoRun

Thanks very much!

Is that "\CommandProcessor" ? (no space?)
 
Back
Top