|
Can you drag-n-drop a file on top of a PS script to run the script? 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! |