I've done some Googling but haven't found what I need yet.
I set up the default program for .bat files to call an editor, so when I double click on a .bat file I want to edit it. But when I right click on it, I want to choose a menu item to run it. After I made this change, then I right click the .bat file and choose "Open", apparently the default action is "Edit", so the file is edited again.
How do I right click the .bat file to get it to run? It sets some path and other vars and opens a cmd window. (It's for Strawberry Perl Portable on a flash drive.)
When I renamed the file to end with .cmd, and did right click, Open, the file ran but the cmd window did not stay open, it closed immediately. The batch file line with command is cmd /K
.
Summary: I want the right click menu to be able to run any batch file, even though the default program sends the .bat file to an editor.
Thank you. I very much appreciate your help. The problem started 24 hours ago with 2, yes 2, bad flash drives (same Sandisk model), and my development on this flash drive has been stopped ever since, trying various fixes and reinstalls.