Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.