View Single Post
Old 03-28-2007   #3 (permalink)
Jen Taylor


 
 

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!



My System SpecsSystem Spec