Do you know the notepad command in PowerShell or cmd.exe? I would like to do the same for NotePad2 I would like to type the following command inside PowerShell and open up the me.txt file;

PS C:\Apps> no -me

how can I configure that?

link|improve this question

67% accept rate
Can you clarify your question? Are you trying to create an alias? – jscott May 27 '11 at 17:39
@jscott I would like to type this no -me inside PowerShell and open up the me.txt file with Notepad2. I saw some guy doing that and wonder how it can be implemented. – tugberk May 27 '11 at 18:10
feedback

1 Answer

up vote 4 down vote accepted

You can create an alias, except the -me would only be me.

PS > set-alias no notepad
PS > no me

You would have to set one to the full path of notepad2.exe so it would be something like

PS > set-alias no c:\my\customdirectory\notepad2.exe 
link|improve this answer
useful but it gets me notepad not notepad2 :s – tugberk May 27 '11 at 19:13
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.