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.
Related
I am using Windows XP. I am trying to add a new library to Dev-C++. For that, I need to install MinGW and then I have been instructed to add the bin directory of MinGW to my system path. But, I don’t know how to do it. Please guide me (step by step) to add this to my system path.
To change the path on Windows XP, follow these instructions, and then add the directory where you install MinGW plus bin. Example: if you install MinGW in C:\ then you have to add C:\mingw\bin to your path
Just for completeness here are the steps shown on the link:
From the desktop, right-click My Computer and click Properties.
In the System Properties window, click on the Advanced tab.
In the Advanced section, click the Environment Variables button.
Finally, in the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
C:\Program Files;C:\Winnt;C:\Winnt\System32;c:\mingw\bin
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.
i am trying to run my MSTest from the command line, and I cannot for the life of me figure out why this isn't working. Yes it works if I manually change the directory to the executable, but I don't want to do that every time.
In the image below, you can see I have set up the environment variable, and yes I have restarted my computer many times.
You need to add it to your PATH variable. In that same dialog edit the Path variable and add the folder to the path. For example, I have enterprise installed, so I used this path:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow
After updating the path you will need to close and restart the cmd window.
I am working in VB.NET and I am familiar with working in the vb[design] view as well as regular vb. I am looking to view/edit my APP.CONFIG file how do I access this file? I am using Visual Studio 2008
The file should be in your project root directory. You can open it by double clicking it in the solution explorer. If the file is not there, you will need to add it using the add new item dialog (from the Project menu), and choosing "Application configuration file"
You can add it a couple of ways, first by adding it via the new item dialog as you would a new class file, etc... OR by double clicking on the My Project Icon and going to your settings tab and adding settings. This will aso create the app.config.
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