Friday, July 06, 2012

set Alias at Startup


There is an alias in my startup.  I like running Notepad++ from the command line, and I don't like typing "Notepad++".  Solution: I put an alias in a startup.cmd file.  
C:\APPS\startup>type startup.cmd
@echo off
set JAVA_HOME=C:\apps\java\jdk1.7.0_05
doskey npp=c:\apps\npp\notepad++.exe $*
cd \temp
I can run it manually or via this registry key:
C:\APPS\startup>type autorun.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"Autorun"="c:\\apps\\startup\\startup.cmd"

No comments: