Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create alias in powershell permanently

// create a profile.ps1 file to set aliases
notepad $((Split-Path $profile -Parent) + "profile.ps1")

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit notepad.exe

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit1 "C:Program FilesWindows NTAccessorieswordpad.exe"
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #create #alias #powershell #permanently
ADD COMMENT
Topic
Name
7+1 =