Run script from explorer context(right-click) menu

Hi,
I have an existing powershell script which removes certain filetypes from a directory however it requires the script and shortcut to be in the directory I want to process. I was wondering if it was possible to put this script (or a VBS equivalent) in a central
location, create an entry on the explorer context menu that when run would call the script using the current directory as the directory that the script is to process.
I don't mind if this is entirely powershell/VBS/.BAT or even if there is some 3rd party app that can easily form part of the process. I'd appreciate any recommendations how to approach this.
Thanks

The context menus are defined by registry entries.
[HKEY_CLASSES_ROOT\Folder\shell\PowershellScript]
@="My Powershell Script"
[HKEY_CLASSES_ROOT\Folder\shell\PowershellScript\command]
@="CMD.EXE /C Powershell.exe -File C:\\Scripts\\MyScript.ps1 %1"
%1 is generated by the context menu and is the folder name
The script needs to accept this path as parameter.
Creating Shortcut Menu Handlers
http://msdn.microsoft.com/en-ca/library/windows/desktop/cc144171(v=vs.85).aspx

Similar Messages

  • Apex Calendar Context (right click) menu

    Hi all,
    Apex version: 4.2
    Plugin: context(rightclick) menu by Vikram
    I'm using this plugin and it works perfectly for SQL Reports and IRs. For example this function opens a new popup window with the ID selected by right clicking an entry.
    function myMenuAction(action, el, pos)
      if (action=='TEST')
          window.open('f?p=&APP_ID.:52:&SESSION.::NO::P1_ID:' + $(el).children('td[headers="ID"]').text(),'Popup','height=800,width=800,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no ,modal=yes');
    ...I want to know if there is a way to do the same on an apex calendar entry.
    Thanks in advance.
    Matt.
    (changed 'handle')
    Edited by: 942631 on 08.04.2013 03:24
    Edited by: 942631 on 08.04.2013 03:43
    Edited by: 942631 on 08.04.2013 03:43

    Matt S. wrote:
    http://apex.oracle.com/pls/apex/f?p=62302:1
    User: demo
    PW: demo
    When i do the same on the calendar ("Home") i don't get the ID "http://apex.oracle.com/pls/apex/f?p=62302:4:111941727026117::P3_X".
    What i expect is (in this example) "http://apex.oracle.com/pls/apex/f?p=62302:4:111941727026117::P3_X:*7499*"
    This is what i wanted to do. I tried different things to achieve the same result as in "TS2".you haven't provided the workspace login details to check if this works but I managed to see that you are currently using a jquery selector *#CALENDAR_PRZ_LIST table tr*
    try this instead
    .Calendar tbody tr td div

  • Activate Panel from right-click menu

    Hi,
    I'm developing a PlugIn with InDesign SDK CS6 and need to activate (?, not really sure if this is the right term) the panel from somewhere else (right-click menu [RtMouseDefault]). Basically, like the Mini Bridge panel is activated when you right-click on a picture->Graphics->Show in Mini Bridge.
    I played around a bit but wasn't able to find a solution (guess I need to do something with my instance of the class PalettePanelView (?)), so would be glad if somebody could point me in the right direction.
    Thanks, kind regards

    Oooops, thats because it was one of mine.
    P.
    ===========
    HideShowPanelByID ( WidgetID w )
      InterfacePtr<IApplication> iApplication(GetExecutionContextSession()->QueryApplication());
      InterfacePtr<IPanelMgr> iPanelMgr(iApplication->QueryPanelManager());
      if (!iPanelMgr->IsPanelWithWidgetIDShown(w))
      iPanelMgr->ShowPanelByWidgetID(w);
      else
      iPanelMgr->HidePanelByWidgetID(w);

  • How did "inspect element" get on my right click menu?

    I did install several addons when this appeared. Anyone know from where this right click menu item came? My search suggested "firebug" - whatever that is. This is not on my XP but it is on my Vista and both have the same addons.
    Thanks

    "Inspect Element" is a new item that is added in Firefox 10.<br />
    Previous Firefox version do not have the build-in inspector.
    *http://www.mozilla.org/en-US/firefox/10.0/releasenotes/
    <blockquote>Inspect tool with content highlighting, includes new CSS Style Inspector</blockquote>
    You can hide that context menu entry by setting the <b>devtools.inspector.enabled</b> pref to false on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • Right Click Menu Keeps Popping Up (Finder)

    Hello all, just wondering if anyone else is having this problem in the Finder. If I right-click on something in the Finder, then left-click on something else, the right-click menu keeps popping up even if I have only one finger on my trackpad.
    I tried removing my entire hand from anywhere near the trackpad and carefully touching the button with my index finger with all the rest of my fingers curled away and it still pops up the right-click menu.
    The only thing that seems to cure it is switching focus to Firefox or some other application, then going back to the Finder. Clicking on a non-icon in the finder seems to help too. However, after right-clicking something then switching to a different icon, the right-click menu pops up again. Very annoying.
    Anyone know a quick fix for this? Thanks in advance.
    Message was edited by: ctrvl

    That's right, burgback. I actually think I may have found the issue: I use a prefpan / application called FolderGlance that lets you customize folders that appear in the contextual (right-click) menu. It even lets you dive into subfolders from an expanding right-click menu. Think about it as "stacks on steroids" because it lets you continue to dive into subfolders (unlike stacks...grrr).
    Anyway, disabling the prefpane and removing the plugin from the ~/Library/Contextual\Menu\Items/ directory seems to have fixed the problem for now. I'll update if it doesn't, but I've been operating for about 30 minutes now without issue. Formerly the problem would rear its head about every 10 seconds I was in the Finder.
    The only unfortunate part is...I love FolderGlance way more than stacks and I'm sad to see it go.

  • Run time prompts not appearing when launching BR from a right click menu

    Hi!
    I have a problem when trying to launch a business rule from a right click menu which is assigned to a dataform.
    The rule launches but does not show/ask for the run time prompts as it should do. The run-time prompts should not be hidden (I checked also Eas and data form selections).
    When using the rule form the Tools-Business Rules menu, the rule works fine. It prompts for the required variables and as they are filled in, the rule does what it is expected to.
    Also, when using the same rule attached into a form (and selected "use members on form"&"run on save") the rule works correctly.
    We are using version 11.1.2.1.
    I already have tried restarting Planning services but without success.
    What might cause this?
    kind regards,
    user637777

    Hi!
    I found out from the Oracle knowledge base:
    This issue is caused by unpublished Bug 11064867 - RIGHT CLICK MENUS NOT RENDERING RUN TIME PROMPTS
    In version 931 run time prompts worked correctly when launching them from a right click menu, I checked this out.
    In our current version I got this working (this is kind of a workaround) by adding a new RTP variable (using the same dimension as the original RTP variable). This way I got the rule to "ask for more information" (like what were you asking for? ) and not running the rule without interruptions. This instruction was given in Oracle support (knowledge base).
    kind regards,
    user637777

  • Printing from Explorer context menu prints in wrong scale

    Hi,
    I have a problem with a customer; when they right-click a PDF file and choose "Print" from Explorer context menu the actual printout is sometimes printed in the wrong scale, ie it looks zoomed. The same problem exists when printing PDF's from other applications as well, for example Outlook. If they print the same PDF one more time (by right-click-printing) the problem may resolve itself. Sometimes it's enough to print twice, other times they need to do it more times. The problem exists in several computers, which is why i want it to be a problem with some default-settings in Adobe Reader.
    What might cause this behavior ?

    So, 4 years have passed, and one would hope the problem solved itself in some update the last 4 years.
    However, it has not. (Well, actually it was fixed for a short while. Then it broke again:()
    I do have some fresh information that can help you devs at Adobe to maybe get closer to a solution.
    Just before christmas (nov 22) i was doing a new attempt to solve the problem.
    At the time Reader XI had been released, but not yet installed at the client. Crossing my fingers and praying to higher powers i downloaded XI and gave it a shot; and the problem actually went away! My theory was that finally some architectual change had been implemented; or parts of Reader had been rewritten for any reason. Anyhow, the problem was gone after nearly 4 years and both me and the client was happy!
    Today the client called again. The PDF-printouts are zoomed again. Worse than ever. Now, EVERY PDF that's printed was getting zoomed (if printed from another program.). When printing, Reader flashes by the screen; so i guess the app does something like "adobe.exe /print %temp%\whatever.pdf" or however it works.
    I immediately suspected that an update had been installed and broke the Reader again. This was the case. 11.0.06 had been auto-installed last week. After searching adobe site for 30 minutes i finally found the downloads required to get 11.0.05 installed and running again. *poof* problem gone. Every print is good.
    SOO..
    11.0.05 does not contain the bug that makes most printouts zoomed. (WORKS)
    11.0.06 contains the bug again. (DOES NOT WORK)
    So, whatever changes are in that update broke the Reader for the client again.
    ADOBE: Hope this gets u closer to a solution!
    PEOPLE: If you are experiencing the same problem as my client, please try my solution. It just might help you.
    ps. oh, and where u download older versions from adobe.com is
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Install order:
    - 11.0.01                AdbeRdr11000_mui_Std.zip
    - 11.0.04 patch      AdbeRdrUpd11004_MUI.msp
    - 11.0.05 patch      AdbeRdrSecUpd11005.msp
    Im not sure if installing Multilanguage/All Languages makes a difference.

  • I was on facebook and deleted an icon by using the right-click menu but then all my pictures and all profile pictures, could no longer be seen. I was able to view them in Explorer so this is something I did in Firefox. How can I unblock a site?'

    '''I was on facebook and deleted an icon by using the right-click menu but then all my pictures and all profile pictures, could no longer be seen. I was able to view them in Explorer so this is something I did in Firefox. How can I unblock a site?'''

    If you select that right-click context menu entry then you block all images from that domain and not one specific image, so do not use that.
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions (e.g. sphotos.ak.fbcdn.net)
    You can use these steps to check if images are blocked:
    * Open the web page that has the images missing in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Is there any way of removing the browser buttons from the right click menu?

    Recently when I right-click on a web page, there are browser buttons (forward, backward, refresh, bookmarks) on the right-click menu for some inexplicable reason. I mean, its kind of absurd that anyone would put browser buttons there, considering the real browser buttons literally right there at the top of the window, and I guess that kinda bugs me.
    Anyway, how did I get rid of them? There doesn't seem to be any way to do so in the customize window, and I've been looking for an add-on but don't really know what to search for. Does anyone know?
    Where did those come from anyway? They weren't there a week ago, and I'm pretty sure these things don't normally just pop up out of nowhere. If nobody knows, its really not important. The important thing is getting rid of them. Thanks!

    That was a new feature in Firefox 32, which was released back in September. Use this UserStyle to get rid of those buttons and restore the text menu items.
    https://userstyles.org/styles/104945/fx-32-context-menu-full-text
    ''You'll need the Stylish extension to be able to install UserStyles.''
    https://addons.mozilla.org/en-US/firefox/addon/stylish/

  • How to remove the option "Set as default background..." from the right-click menu on a picture, for all users.

    Hi! I would like to know if there is any possibility to remove the option "Set as default background..." from the right-click menu on a picture, for all users. I know that's possible to edit userContent.css or userChrome.css, but this concerns only a profile at a time and being in a domain, I would like to set this for all people using Firefox.
    Can it be possible to edit a mozilla.cfg file to get the same result?
    Thank you in advance for help and tips.

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

  • Removing "Open With [Program]" from Right-Click menu

    I was looking around for Applications that could play .avi files and I found Perian  so decided to install it. After installing it I quickly found that it didn't work with all of my .avi files and after some further reading realized that Perian is no longer supported and apparently does not work with QT 10. I decided to uninstall it and use VLC player instead. After uninstalling Perian and removing it from the "System Properties" it looks like it's still showing up in the right-click menu for .avi files.
    My question is how do I remove this from being an option whenever I right-click an .avi file? Perian is no longer installed and I don't want to see it as an option.
    Thanks in advance

    This is probably because all the associated files have not been removed and it is still in the LaunchServices cache. To be sure you remove all associated files may require re-installing the app and using AppCleaner  to trash it and it's supporting files.
    Then, you may also need to clear LaunchServices caches
    Launch /Utilities/Terminal and copy & paste this at the prompt to rebuild LaunchServices: (be sure to copy the entire line it's a scroll)
    Code:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. Let us know

  • User Presets removed from right-click menu?  Why???

    I updated to LR CC 2015 yesterday and it appears that User Presets are no longer available in the right-click menu under Develop Settings.  Am I missing something?  Why in the world would they do this?  I am used to being able to grab a series of exposures for an HDR and apply a pre-export preset before sending them to Photomatix Pro.  I don't want to do this on import, because I shoot a mix of single exposures and bracketed sets, and I use different pre-Photomatix settings depending on the type of image and the style I'm going for in the final result.  Without the right-click option (which was already causing issues in 5.7), I now have to move my cursor over to my presets on the left side of the screen, apply the desired preset to the selected image, then move all the way across the screen to Sync the rest of the highlighted exposures, then go back to the right-click menu to export them to Photomatix.  What a complete pain.  The new HDR merge is nice for doing very natural HDRs of static subjects like architectural interiors, but it falls far short of the versatility and look of Photomatix Pro, and the deghosting is woefully inadequate compared to the robust options available in PP.  And, frankly, the whole program runs a whole lot slower than 5.7 did.  I'm feeling like my subscription was a huge waste of money.

    I apologize for the inconvenience, but due to a recent influx of spam email, I have been forced to implement a more aggressive spam detection program on my email server.  Please complete the verification below to confirm that you are a real live human being and not a spam source.  This is a one-time process and once you complete it your message will be delivered and future messages to me will be automatically approved.
    To complete this verification, simply reply to this message and leave
    the subject line intact or click the link below:
    http://www.grandviewvirtual.com/cgi-sys/bxd.cgi?a=[email protected]&id=165JDTKKqo9 pTB61zhZh5-1430077120//www.grandviewvirtual.com/cgi-sys/bxd.cgi?a=[email protected]&id=165JDTKKqo9pTB61zhZh5-1430077120
    Thank you for your cooperation!
    Bill Pohlmann

  • I clicked "block images from...." in the right click menu and need to undo it

    i was opening the right click menu so i could click "open link in new tab" for pictures on facebook and accidentally hit "block images from..." and i can't see photos and need to undo it. i found one website that said to fix it by clicking these....
    Tools
    Options
    Content
    Exceptions
    Add the address
    Check allow
    click ok
    but i either don't have "options" under my tools menu or am under the wrong tools menu
    thaks! your help is much appreciated!

    On MacOS, your options dialog is here:
    Firefox > Preferences > Content
    The "Exceptions" button you want is the one to the right of "Load images automatically"
    Any luck?

  • SAP BW 7 - Call URL from Right Click Menu

    Is it possible to make a http call from the right click menu? I know this was possible in 3.5, but the new code seems to have limited my ability to edit the options that appear when I right click on a field and I need to make a call out to another web server for some external data. Is this possible?
    Any information that anyone has about a potential work around would be great!!
    Thx.

    Kristine,
    Have you tried using RRI (Transaction RSBBS)? You can call URL , pass values etc.
    -Saket

  • Quick MD5 values from right-click menu?

    Is there a way to easily generate MD5 values for files in OS X? Ideally I would like to see MD5 values in the "Info" for a file or in the right-click menu.
    MBP C2D & Mac Mini 1.25ghz   Mac OS X (10.4.8)  

    Not from the Finder. In Terminal, just use the command "md5"<pre>md5 filename</pre>

Maybe you are looking for