Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,837 of 42,547    |
|    JJ to rajnarayanan579@gmail.com    |
|    Re: Doskey alias command from a cmd shor    |
|    25 Apr 20 19:30:33    |
      From: jj4public@vfemail.net              On Fri, 24 Apr 2020 16:54:11 -0700 (PDT), rajnarayanan579@gmail.com wrote:       > I have the following in the Target of a cmd shortcut on my desktop:       > "C:\Windows\System32\cmd.exe /k m50"       >       > But the cmd windows shows the following error: "'m50' is not recognized       > as an internal or external command".       >       > The doskey macrofile has been registered in the registry. How can I make       > this work? Thanks.              DOSKEY won't work like you expected, because it doesn't work like that.              Every console window has it's own alias, and other console input       configurations. DOSKEY simply changes & manages those configurations.              So, as long as that console window is still open, the configured macros will       work - assuming that whatever console program is running in that console       window, does not use their own input handler (which basically makes the       alias ineffective).              If the console window is closed, then the macros are gone. Also, macros are       not inherited to child console windows.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca