Adding a directory to the system path variable through registry Ask Question. Asked 5 years, 11 months ago. Active 3 years, 6 months ago.
Viewed 6k times. What am I doing wrong? Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Thomas Dickey Thomas Dickey Andy Smith Andy Smith 1. The length and non-specificity of your answer indicates that it should be a comment instead.
Sign up or log in Sign up using Google. As a matter of convenience, most Windows users use the Windows desktop as a temporary place to store files. Unfortunately, even though important files are often stored here, there is, by default, a disconnect between this location and the location where you normally store your other important files. This article shows how to set the location of your Windows desktop folder, so that your desktop files are kept in a more sensible location.
I have used this trick successfully in Windows versions ranging from Windows 98 to Windows7. Create the folder for your new desktop, if it doesn't exist, and use the location bar in Explorer to copy the folder's path to your clipboard.
Move all the files from your current desktop location to the new location. If you want to retrieve a specific entry in a registry key, you can use one of several possible approaches. Using Get-ItemProperty , use the Path parameter to specify the name of the key, and the Name parameter to specify the name of the DevicePath entry. Although Get-ItemProperty has Filter , Include , and Exclude parameters, they cannot be used to filter by property name.
These parameters refer to registry keys, which are item paths and not registry entries, which are item properties. Another option is to use the Reg. For help with reg. To find the DevicePath entry, use reg. If you want to change a specific entry in a registry key, you can use one of several possible approaches. The Path entry specifies where to find executable files.
Although Set-ItemProperty has Filter , Include , and Exclude parameters, they cannot be used to filter by property name. These parameters refer to registry keys—which are item paths—and not registry entries—which are item properties.
The following example changes the Path entry by removing the path added in the example above.
0コメント