Add 'Edit or Run with' to PS1 File Context Menu in Windows 10  

Page 2 of 4 FirstFirst 1234 LastLast
  1. Brink's Avatar
    Posts : 58,374
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #10

    DrgnLrd said:
    Not sure why it didn't work when I edited it, but it worked right away when I merged that reg file.
    Great news. May have just been one of those obscure typos.
      My Computers


  2. Posts : 427
    Win7 Pro X64, Win10 Pro x640
       #11

    Good morning @Brink. It just dawned on me that analagous cascading menus to open .bat, .cmd, and .vbs files with command prompt (possibly powershell if applicable) would also be useful. Could you create tutorias for them as well please? Thanks!
      My Computer

  3. Brink's Avatar
    Posts : 58,374
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

    bamajon1974 said:
    Good morning @Brink. It just dawned on me that analagous cascading menus to open .bat, .cmd, and .vbs files with command prompt (possibly powershell if applicable) would also be useful. Could you create tutorias for them as well please? Thanks!
    Hello mate,

    Did you have any specific context menu items for them in mind?

    I'm not sure it'll be needed since they open and run in command prompt by default.
      My Computers


  4. Posts : 427
    Win7 Pro X64, Win10 Pro x640
       #13

    I was thinking of an expandable context menu to open in command prompt and command prompt admin, wscript.exe and wscript.exe admin, powershell and powershell admin, and notepad. Analogous the powershell menu in this thread nut for vbs, bat and cmd files. Of course not all of those options would be applicable. Does that make sense?
      My Computer

  5. Brink's Avatar
    Posts : 58,374
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    bamajon1974 said:
    I was thinking of an expandable context menu to open in command prompt and command prompt admin, wscript.exe and wscript.exe admin, powershell and powershell admin, and notepad. Analogous the powershell menu in this thread nut for vbs, bat and cmd files. Of course not all of those options would be applicable. Does that make sense?
    I'll take a look to see what I can do since some of these would be limited on what can edit or open with.
      My Computers


  6. Posts : 427
    Win7 Pro X64, Win10 Pro x640
       #15

    Ok sounds good. I know that windows script hist is one of the options to run and/edit. Do bat, cmd and vbe files run independently from wscript and cmd or does wscript provide a wrapper or interface to run through cmd?
      My Computer

  7. Brink's Avatar
    Posts : 58,374
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #16

    bamajon1974 said:
    Ok sounds good. I know that windows script hist is one of the options to run and/edit. Do bat, cmd and vbe files run independently from wscript and cmd or does wscript provide a wrapper or interface to run through cmd?
    wscript would be for .vbs files, but they already open with it by default.
      My Computers


  8. Posts : 427
    Win7 Pro X64, Win10 Pro x640
       #17

    I checked for bat and cmd files. The available options are to open (I assume with command prompt), runas (as admin command prompt) and edit (with notepad). I am guessing that bat and cmd files don't run in powershell or wscript.exe so there isn't anything additional to add to the context menu, right?

    For VBS, it looks like you can open with wscript, open with cmd and edit with notepad, so I am guessing the only other two logical context menu options would be to open with wscript and cmd elevated, right?
      My Computer

  9. Brink's Avatar
    Posts : 58,374
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #18

    bamajon1974 said:
    I checked for bat and cmd files. The available options are to open (I assume with command prompt), runas (as admin command prompt) and edit (with notepad). I am guessing that bat and cmd files don't run in powershell or wscript.exe so there isn't anything additional to add to the context menu, right?

    For VBS, it looks like you can open with wscript, open with cmd and edit with notepad, so I am guessing the only other two logical context menu options would be to open with wscript and cmd elevated, right?
    Correct. It doesn't seem like a new context menu is needed for them for these options. The only thing different it notepad. You can also use run as administrator with them.
      My Computers


  10. Posts : 427
    Win7 Pro X64, Win10 Pro x640
       #19

    Brink said:
    Correct. It doesn't seem like a new context menu is needed for them for these options. The only thing different it notepad. You can also use run as administrator with them.
    The only options I don't have are to run wscript.exe and cmd, both as admin, for VBS files. What would be the correct string syntax for each? I can try out when i get home this evening.
      My Computer


 
Page 2 of 4 FirstFirst 1234 LastLast

Tutorial Categories

Add 'Edit or Run with' to PS1 File Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:35.
Find Us




Windows 10 Forums