View Single Post
Old 04-05-2007   #4 (permalink)
Jim Holcomb


 
 

Re: Can you drag-n-drop a file on top of a PS script to run the script?

Jen Taylor wrote:
> With VBScript files, you can drag-n-drop another file on top of the VBScript
> file. This executes the VBScript and then the path of the dropped file is
> passed in as an argument to the script.
>
> You can also put VBScript scripts into your Send To folder in your local
> profile, then "send" files to the script.
>
> Finally, wscript.exe can take a UNC path to a script in a remote shared
> folder and run scripts from the share.
>
> Are these tricks possible with PowerShell too?
>
> Thanks!
>


Have you done this yet? I've tried dragging a file to a Powershell
script shortcut on my desktop but it doesn't take it.
My System SpecsSystem Spec