Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 5 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 
share|improve this answer
useful but it gets me notepad not notepad2 :s – tugberk May 27 '11 at 19:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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