cmd/cmd_autoexec.bat

12 lines
391 B
Batchfile
Raw Normal View History

2020-01-16 05:34:01 +00:00
@echo off
REM 1. Go to or create "HKCU\Software\Microsoft\Command Processor"
REM 2. Create string value "Autorun"
REM 3. Set its value to "call <path_to_this_file>"
REM And now all of these commands will be invisibly executed in every new cmd window.
REM I use it to set doskeys which are as close as Windows gets to unix aliases.
doskey .=cd.
doskey ..=cd..
doskey ...=start.
doskey \=cd\