0

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?

user9517
  • 115,471
  • 20
  • 215
  • 297
tugberk
  • 937
  • 4
  • 13
  • 30
  • 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 Answers1

5

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 
Andy Schneider
  • 1,543
  • 5
  • 19
  • 28