|
Re: Can you drag-n-drop a file on top of a PS script to run the script? > By default powershell does not register .ps1 to powershell... they get
> registered to notepad. This is a security measure.
Hmmm, interesting. Why not associate .ps1 files with powershell.exe, but
set the default action to Edit instead of Open? This way, if a user
double-clicks the file, it'll still open in Notepad, but if the user
right-clicks the file they can still run the script by manually by selecting
Open.
Oh well...thanks for the info! |