[关闭]
@woshichuanqilz 2015-11-01T08:54:27.000000Z 字数 617 阅读 1616

Use DOSKEY alias the dos command permanently

LittleSkill


Add the reg file 'Autorun.reg' in the registery. And the dos window will start with the command in the file you just specify in the autorun.bat

  1. Windows Registry Editor Version 5.00
  2. [HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
  3. "Autorun"="\"d:\\Program Files\\ALTRun\\PCConfiguration\\autorun.bat\""

this is my autorun.bat file which rename clear, python and DOSKEY /HISTORY command,
you'd better use the cls command which means clear the dos window to make the dos window clear , if not the command in the autorun.bat will leave on the dos window

  1. DOSKEY clear=CLS
  2. DOSKEY py=python
  3. DOSKEY his=DOSKEY /HISTORY
  4. cls

Tnx for reading. : )

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注