How do I configure Beyond Compare (BC4) to "Open with... Parent Folder" in Windows Explorer for a selected file in Windows 10? - explorer

How to Configure BC4 to "Open with... Parent Folder" in Windows Explorer for the selected file(s) in Windows 10
I use Beyond Compare (v4) many times per day, because it offers features that Windows Explorer or Finder do not for sizing folder contents, synchronizing file systems, etc. I frequently need to open the containing (parent) FOLDER for the selected file(s) displayed in BC4 Folder Compare.
Presently, I navigate to the folder containing the file for which I want to open parent folder, but then I must navigate upward and right click and say "Open with ..." and select "Associated Application". These are extra time consuming steps, because I may do this several times per day.
I want to configure an "Open with..." option to open the file's parent folder (in Windows Explorer), NOT the viewer or editor for the selected file(s).
I tried various options, but cannot get it to work. If I set the "Command Line" parameter to Windows Explorer executable (Explorer.exe) by itself, it does not work.
I tried the %P (relative path) and %p (absolute path) with the the or selected, but it did not work.
QUESTION: How do I configure this mouse right-click option to open the file(s) parent folder, and also assign a keyboard shortcut in Beyond Compare 4?

ANSWER: Through trial and error I figured out what the exact syntax and parameter settings are for the fields "Command Line", "Working Folder" and "Accepts Files" and "Accepts Folders" options.
> Description: Folder in Windows File Explorer
> Shortcut: Alt-F Command
> line: C:\Windows\explorer.exe %P <<< enter this without quotes >>>
> Working folder: BLANK Accepts file: CHECKED Accepts folders: CHECKED
> Multiple instances: CHECKED <<< opens only one Explorer, multiple files can be selected.
The relative path (%P) argument is needed alone (WITHOUT THE FILENAME OR FILE EXTENSION) on the command line to get this to work.

Related

Trying to setup Environment Variable for Visual Basic

I'm suppose to setup the Environment Variable, so I can compile Visual Basic files in the Command Prompt.
So I go to System variables create a New Variable, named 'VisualBasic', but I'm not sure what root to use. Below are a couple, but non of them work. Where can is find the right folder or is my process wrong?
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VB\Bin
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VB\Bin
I guess you need to add those paths to the already existing environmet variable Path that already exists. If you create a new environment variable VisualBasic that is not used by the command line like Path is.
To add a path to the PATH environment variable
On the Start menu, right-click Computer.
On the context menu, click Properties.
In the System dialog box, click Advanced system settings.
On the Advanced tab of the System Properties dialog box, click Environment Variables.
In the System Variables box of the Environment Variables dialog box, scroll to Path and select it.
Click the lower of the two Edit buttons in the dialog box.
In the Edit System Variable dialog box, scroll to the end of the string in the Variable value box and add a semicolon ;.
Add the new path after the semicolon.
Click OK in three successive dialog boxes, and then close the System dialog box.
If Visual Studio is open when you make changes to system environment variables, it will not recognize the changes until you close and reopen it.

how to properly remove files added under "My Project" in solution explorer?

I deleted the file Form1.vb on folder/explorer because I accidentally created it under MyProject in the solutions explorer. but when I tried to rebuild it I'm having below error already.
Severity Code Description Project File Line Suppression State
Error Unable to create a manifest resource name for "My Project\Form1.resx". Could not find file 'C:\Users......\My Project\Form1.vb'.
all data of files is stored in the solution itself, Go to Solution Explorer, Select the file
Either
1.) Right click the folder, Click Delete, Confirm Deletion Process if prompted.
2.) Left click the folder and hit the Delete key on your keyboard.
Do either of these will remove it from your solution and thus, the project. If you have folders being sync'd with git hub it will also update it this way, don't just straight up delete folders from the actual windows explorer though, this could cause pointer issues for reference.
I found the solution.
I created same file with same filename confirmed to replace this with the missing.
then added it again on "MyProject". Project -> Show All Files from the main menu.
I think what I needed was just the Project > show all files.
thank you to everyone who answered above it made me search for this

How to stop files inside moved directories (and newly created files) from automatically opening in editor (PyCharm 2020.1)

I am using PyCharm 2020.1. When I create a new file, PyCharm automatically opens it in the editor. Also when I move a directory, PyCharm opens all the files inside the directory in the editor.
Sometimes it's tens of files opened at once. This behavior is frustrating and I would like to turn it off, but have not been able to find where in Preferences to do so.
Someone please help me figure out how to stop newly created files and files inside moved folders from automatically opening in editor. Thanks.
I don't think you can't open a new file via PyCharm, unless you create it via the Terminal tab on the bottom, for example:
touch test.py
When you move a directory into a new directory, there should be a checkmark on a popup saying "Open moved files in editor", so you probably have that checked.

intellij usability question - how to add a button that opens working folder

There's a small feature I have been yearning about in intellij idea and I will give it a try in this forum, maybe it is already possible.
In brief: I want a button that opens the working folder of the project I am working on.
Since this is the folder I put my settings files I am doing the following operation dozens of times a day -
open the run/debug configuration.
go to my activbe project tab.
copy the working directory.
open run (win+r).
paste the folder path and press enter.
X dozens of times.
Is there a way to add a button somewhere that opens my working folder?
BTW: I know that in the project settings - External tools - I can add actions. but there is no workingFolder in the macros. is there a way to add the working folder? (eventhough a button would be better)
Thanks a lot.
If you need to manage files, why not do it right from IntelliJ? If you have to go to explorer, right click any file or folder in the project panel, and there's a "Show in Explorer" option in Windows (no default key mapping). There's also "Show Path" (ctrl+alt+F12), which lets you open Explorer to any parent directory of the selected file all the way up to the drive. Finally, "Copy Path" (ctrl+shift+C) will copy the absolute path to the clipboard. (This is in IDEA 10.5, but I know Copy Path has been there a long time.)

How do you register a name for a program in the windows run dialog?

How do you register a name for a program in the windows run dialog?
For instance typing in "notepad" and pressing enter runs notpad.exe
"photoshop" in my case runs Photoshop CS3
I'm using vb2005.net
Besides the system path, there's also the App Paths in the registry. Visual Studio, for example, doesn't have its main app (devenv.exe) in the PATH, but you can still launch it from the Run dialog.
Available names are enumerated under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths, with corresponding launch paths as values under each name.
See http://www.tweakxp.com/article36684.aspx for an example of how to add an exe to your App Paths.
This works because those applications have added the directory containing their executable to Window's PATH variable. This variable is used to resolve the locations of any files entered into the run dialog (among other things).
Please see How to set the path in Windows 2000 / Windows XP.
There is no registration, your program .bat, .exe must be within the system path.
If you right-click on "My Computer" ->"Properties"-> "Advanced" then go to the "System Variable". You can edit the "Path" variable to include the location of your executable.
This has nothing to do with "registering" a program. Windows uses the current value of your PATH environment variable, and any executables found in those directories can be executed by simply typing the name into the Windows "Run" box (or command prompt, or anything else that launches executables).
Some programs add their directories to the PATH, others drop an executable (or even a batch file) into a well-known directory that is already part of the PATH, such as the Windows directory.
Add the program's path to your PATH variable.
If you want to do it programmaticly, you can edit (append, not just set) this registry location (in, say, your installer):
HLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path