Web browsers have a feature for pinning tabs. A pinned tab doesn’t have a close button that can be clicked accidentally and it’s an easy way to prevent accidentally closing something important. Unfortunately, something like this isn’t available on an OS level to prevent you from accidentally closing an app.
If you want to keep yourself from accidentally closing a File Explorer window, you need an app called NoClose. It’s meant to work for other apps and isn’t just limited to File Explorer however, there’s no definitive list of apps that it will work with. We do know for a fact that it works flawlessly for File Explorer.
Prevent accidental close File Explorer
Download and run NoClose. The app works by disabling the close button for a window. Open File Explorer and tap the Ctrl+1 keyboard shortcut to disable the close button. Tap the same keyboard shortcut to enable it again. Use the number one key at the top of the alphabet keys. The shortcut won’t work with the number pad.
NoClose also supports rules for disabling the close button on certain app windows. You can apply rules with the Ctrl+2 keyboard shortcut however, they must first be configured.
To configure rules, right-click the app’s icon in the system tray and select Settings from the context menu. Go to the Rules tab. The syntax given is pretty easy to follow but, you will likely get stuck where it comes to entering the Class for an app. To find the correct class name for an app, open it and use the Ctrl+1 keyboard shortcut to disable its close button. The Rules tab will list its Class.
The rules can be used to automatically hide the close button for a particular app window e.g., when you have a specific Notepad file open.
NoClose works for File Explorer and Notepad. It doesn’t work for UWP apps, nor does it work for Chrome. It appears to be a hit and miss with desktop apps. It will work for VLC player and Paint, but not for Firefox.
As for closing a window that NoClose has disabled the close button for, you cannot close it by right-clicking the app’s icon in the taskbar however, you can close it by clicking the close button on the app preview that appears when hover the mouse cursor over its icon on the taskbar. The app is simple and as such, it doesn’t have that many features but can be a reasonably good way to prevent yourself from accidentally closing an app window.
Items in folders in Finder can be sorted and grouped in all sorts of ways. You have the usual date sorting options, the type sort, the size sorting option, sorting by tags, and much more. You may notice though that when you set the default folder group in Finder for a particular folder, it keeps resetting. When you visit it again, the groups are gone and your files are using the default sort rules. Here’s how you can set default file grouping for a folder in Finder, and actually get it to stick.
Default grouping folders
There are two ways to do this. Pick whichever you like best though neither is better nor more convenient than the other.
Enable groups from context menu
Navigate to the folder you want to set the sort view for. Right-click inside it and in the context menu, select the ‘Use Groups’ option. Right-click one more time in the folder, and select the ‘Group By’ option. From the sub-menu, select how you want the files in the folder to be sorted i.e., by tag, date, size, etc.
Finder View Options
Open the folder that you want to set the sort view for. On the menu bar, go to View>Show View Options. Make sure you’re getting view options for the folder and not for the desktop. In the window that opens, there’s a ‘Group By’ dropdown. Open it, and select how you want to group the files in the folder. That’s about it.
When you open the folder next time, regardless if it’s after a restart or after waking your Mac from sleep, the grouping will still stick. Any new files that you add will also be grouped accordingly.
This option is set on a per-folder basis however, you will notice that there’s a ‘Use as Defaults’ button in the View Options window. If you click it, this same grouping will be applied across the board to all folders. If you always prefer files to be sorted a a certain way, this is the way to do it. It will apply to all the folders that you currently have, and to any new folders that you create. You can still selectively change the grouping for a particular folder. All you have to do is visit the View Options window for that folder and select a different grouping method.
macOS is rather flexible in some areas, especially when it comes to custom file and folder settings.
Color plays a major role in how good anything looks on your screen and how useable it is. Think of an app that you use everyday, and picture how it would look if it were monochrome. Color helps highlight different buttons, controls, and even text fields. The color may be subtle as in a little shadow, or a highlight, or it might be bold like the red that a close button turns when you hover the mouse cursor over it. If you need to find the color code for an object on your desktop, the process is pretty simple.
Screenshot and Paint
If you’re looking to find the color code of an object without installing anything on your system, we strongly recommend using Paint. Make sure whatever it is you want to find the color code for is on your screen, and tap the Print Screen (PrtScrn) key.
Open Paint and you’ll notice that the Paste button is active. Click it and everything on your screen will be pasted as a screenshot in Paint.
Once the screenshot has been pasted, pan to, and zoom in on the object that you want to find the color code for. On the Tools set of buttons, click the eyedropper button to activate the color picker that’s built into Paint. Move it over the object you want to find the color code for and click it.
The color will be ‘picked’. To find its code, click the ‘Edit Colors’ button. In the window that opens, you will see the RGB value for the color. If you need the HEX code, you can use Google to convert the RGB value to HEX code.
While this method is easy to use and doesn’t require extra apps to be installed on your system, it’s a bit tedious. If you only occasionally need to pick color from your screen, this will suffice but if you do it often, a dedicated color picker tool is what you need.
We recommend using CatchColor. It’s light weight, and it runs in the system tray. It has a neat magnification feature that lets you accurately pick the color of an object on your desktop. Additionally, you may find that when dealing with gradients, Paint’s own color picker doesn’t always do a great job. That’s where a color picker utility might come in handy.
Many image editors have color pickers so if you don’t want to run an app like CatchColor, try using IrfanView’s color picker tool instead.
Using a Bluetooth device is a two step process; first you have to pair it with your PC, and then you have to connect it. The pairing is really what takes more time, while connecting requires clicking a button (or tapping a keyboard shortcut) and nothing more. Pairing is really what’s time consuming. Windows 10 has a neat feature called Swift Pair that makes it easier to pair Bluetooth devices that are in ‘pairing’ mode. Here’s how it works.
Bluetooth Swift Pair
This feature has been around for at least a year so if you’re still waiting on Windows 10 1903, you will still be able to use it. Open the Settings app and select the Devices group of settings. Go to the Bluetooth tab, and look for an option called “Show notifications to connect using Swift Pair’. Make sure that it’s enabled.
That’s all there is to it. The only thing you need to do now is turn on the Bluetooth device you want to pair. If it isn’t set to connect to another device nearby, it will turn on in ‘pairing’ mode. You should now see a notification like the one below (courtesy Microsoft), telling you that there’s a device nearby that’s ready for pairing. Click it, and the device will be paired and connected.
Compatible devices
Microsoft has neat Bluetooth features but they’re limited by device. Swift Pair is only going to work with compatible devices and the list of these devices is going to be small. Chances are that whatever Bluetooth peripheral you have, if it isn’t a Microsoft product, or an exceptionally popular product, it isn’t compatible with Swift Pair.
Microsoft added a feature to Windows 10 for viewing the battery percentage of Bluetooth devices and it too was similarly limited. This is despite there being third-party apps that can do the job. It’s not that the technology isn’t available, it’s just that Microsoft uses technology that isn’t as commonly used.
Swift Pair is quicker when it comes to pairing a device and nothing else. Just because your device isn’t compatible doesn’t mean you won’t be able to connect it to your PC. It will pair, and connect just fine through the pair menu. If you have trouble connecting a device from the Settings app, give the Control Panel a try since it’s far more stable than the Settings app. It’s hard not to point out that Apple does this much better on macOS.
Commodore 64 was one of the best-selling home computer systems of its time. Sadly, that time is long passed, and the machine isn’t in production anymore. The only way to enjoy it in modern times is with emulation.
On Linux, you can play Commodore 64 games through the Vice emulator. In this guide, we’ll walk you through how to set up C64 emulation, how to save your game, configure joysticks, and more!
Note: Addictivetips in no way encourages or condones the illegal downloading or distribution of ROM files for the Commodore 64. If you choose to install Vice, please use your own game ROMs you’ve backed up to your PC, legally.
Install Vice emulator on Linux
The Vice emulator supports a wide variety of Linux operating systems through their software repositories. Specifically, the app supports Ubuntu, Debian, and Fedora in their official software repositories. Additionally, the app is easily installable on all Linux distributions via Flatpak.
To install the Vice emulator on your Linux operating system of choice, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, follow the command-line instructions below that correspond with the Linux operating system you use.
Note: for best results with the Vice application, install the Flatpak version. It is much easier for beginners and requires no configuration to use.
Ubuntu
sudo apt install vice cd /tmp wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz
tar xvf vice-2.4.tar.gz
cd /tmp/vice-2.4/data/C64
cp chargen kernal basic /usr/lib/vice/C64/
Debian
You must enable the “Contrib” software repository in Debian Linux before attempting to install Vice. To enable “Contrib,” open up your sources file in Nano.
sudo nano -w /etc/apt/sources.list
In the file, find “main” and put “contrib” right after it. It should look like the following screenshot.
After adding “contrib” to the sources file, save the edit in Nano by pressing Ctrl + O. Then, run the update command.
sudo apt update
Finally, install and configure Vice with the following commands.
sudo apt-get install vice cd /tmp
wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz
tar xvf vice-2.4.tar.gz
cd /tmp/vice-2.4/data/C64
cp chargen kernal basic /usr/lib/vice/C64/
Fedora
Installing Vice on Fedora Linux means enabling the RPM Fusion Nonfree software repository. To learn how to enable RPM Fusion on Fedora Linux, follow our guide here.
Once RPM Fusion is enabled on your Fedora Linux PC, the Vice emulator is easily installed with the following command.
sudo dnf install vice
OpenSUSE
As of right now, the Vice emulator does not have support for OpenSUSE Linux, and it doesn’t appear that this will change any time soon. Don’t worry! It is possible to enjoy this program on SUSE by following the Flatpak instructions!
Flatpak
The Vice emulator is on Flathub available for installation as a Flatpak. To install, ensure that you have the Flatpak runtime enabled on your Linux PC. When you do, use the following commands to install the program.
The Vice emulator, like all emulation apps on Linux, requires a ROM file to load software. To start up the C64 Vice emulator, press Alt + F2 on the keyboard to bring up your quick launch window. Then, write the command in the launch box to access the emulator.
x64
Alternatively, open up the Vice emulator in C64 mode by going to “Games” in your app menu, and searching for Commodore 64, or Vice (C64).
With the Vice emulator open and in C64 mode, download your favorite game ROM to your Linux PC and get it ready to go. Then, press Alt + A on the keyboard to launch the open-file dialog.
Browse for the C64 ROM file on your Linux PC, select it with the mouse in the UI, and click the “Autostart” button to load it up in the emulator as a program automatically. As soon as the ROM file loads, your software should be ready to use.
Saving/Loading games
Need to save your Commodore 64 game? Here’s how to do it. First, click on the “Snapshot” menu. Then, once in the menu, look for the “Quicksave Snapshot” button, and click it. Your game will save instantly.
To load a saved game, open up the “Snapshot” menu, and look for the “Quickload Snapshot” button. Select it with the mouse. As soon as “Quickload Snapshot” is selected with the mouse, your game save will load into the emulator.
Configure joystick/controller
Want to configure your controller to use the Joystick function on the Vice emulator? Click the “Settings” menu. Then, locate the “Settings” button and select it to open up the Vice emulator’s configuration area.
In Vice’s “Settings” area, find “Input Devices” and double-click it. Then, select “Joystick settings”.
Inside “Joystick Settings,” find “Joystick #1,” and set the dropdown to your game controller, keyboard, or USB joystick. Then, click on the “Userport Joystick #1” dropdown menu, and set it to “keyset A.”
After setting “Userport Joystick #1” to “keyset A,” locate the “Configure keyset A” button and click it with the mouse. From there, use the UI to configure the buttons on your joystick.
VirtualBox virtual machines are slow, thanks to the default VM configuration. If you use VirtualBox to run Linux, you may notice that performance isn’t great, and are looking for ways to improve it.
It is possible to improve your Linux VM’s performance by tweaking settings in VirtualBox. Follow along in this guide as we show you how to make your VirtualBox VM run better!
Looking for an alternative to VirtualBox? We’ve got a few suggestions.
Install Guest Additions
The first thing to do if you’re experiencing a slow VirtualBox virtual machine is to install Guest Additions. The reason? Guest Additions come with several VirtualBox enhancements, drivers, and improvements which can significantly improve the speed and responsiveness of your VM.
To get Guest Additions installed, start by launching your virtual machine and load it up into the operating system that is installed on it. Then, when the OS is running, press the Right Ctrl button to gain access to the Virtualbox VM controls.
Once you’ve pressed the RightCtrl button, find the “Devices” menu and click on it with the mouse. From there, look for the “Insert Guest Additions CD image” and click it. Virtualbox will automatically download the Guest Additions ISO file, and insert it to your VM.
Note: if Virtualbox fails to download your ISO automatically, grab this ISO image and insert it into the VM by clicking on the CD icon, and selecting the “Choose disk image” button.
After inserting the Guest Additions ISO file, return to your Virtualbox VM, and open up a terminal window. To launch a terminal window in a Linux VM, press Left Ctrl + Shift + T or Left Ctrl + Alt + T. Then, with the terminal window open, use the CD command below.
cd /media/$USER/VBox_*
Or
cd /media/cdrom
Run the “autorun.sh” shell script in the Guest Additions directory.
sudo sh autorun.sh
Let the script install the VirtualBox Guest Additions into your VM. When the process is done, reboot the VM.
Increase cores in VM
Casual virtual box users who set up a Linux VM do not think about CPU cores. They go with the default setting of one core and then wonder why their VM is so slow. If you want to make it a little faster, change how many cores your VM can use.
To start, determine how many cores your host CPU has. You can find out this information by looking at your computer or CPU manual.
After determining how many cores you have on your host machine, read the list below to learn how many cores to give your VirtualBox VM.
Host CPUs with 4 cores should use 2 cores.
Host CPUs with 6 cores should use 2-4 cores.
Host CPUs with 8-12 cores should use 4 cores or more.
Once you’ve determined how many cores to use, power down the VirtualBox VM, then, select it in the VirtualBox UI, right-click on it, and select the “Settings” option.
Inside of “Settings,” look for the “System” option and click on it with the mouse. After that, find the Processor tab.
Find the “Processor(s)” area, and drag the slider to the desired amount of cores. Click the “OK” button to save the settings.
Increase video memory allocation
The default video setting for VirtualBox is low. It only allows the Guest Operating system about 16 MB of video memory. If you’d like to improve the speed of the VM, increasing the video memory allocation is key.
To change the video memory allocation in a VirtualBox VM, do the following. First, shut off your VM. Then, right-click on it in the VirtualBox UI, bring up the right-click menu, and select the “Settings” option.
Inside settings, find “Display” and click on it with the mouse. Locate the “Video Memory” slider and set it to 128 MB. Then, click the “OK” button to apply the changes to your VM.
Increase virtual RAM
The amount of RAM selected by default on VirtualBox is pretty small. Roughly about 1024 MB. This amount is enough to run a basic Linux distribution, but if you want to do any serious work, the amount of RAM needs to be increased.
To increase virtual RAM in the VirtualBox app, close your VM and power it down. Then, right-click on it in the VBox UI, and select “Settings” in the right-click menu.
Inside of the “Settings” window, click on “System.” Then, locate the “Motherboard” tab and click it. From there, find “Base Memory” and drag the slider to your desired amount of RAM (at least 2-3GB).
After setting the virtual machine’s RAM to a higher amount, click the “OK” button to apply the changes.
Use a lightweight desktop in the VM
There are a lot of hardware changes to the VirtualBox that will improve the performance of your VM, and we’ve covered that in this article today. However, if your Linux VM is running slow, you should also consider the desktop environment you are running on it.
Out of the box, most Linux distributions use Gnome Shell or KDE Plasma. These desktops are very heavy, and not great for virtualization. Instead, consider installing a more lightweight desktop environment that uses much less system resources, and is more responsive in a VM, such as LXQt, XFCE4, Mate, or Enlightenment.
No Man’s Sky is an expansive survival game set in a massive universe, filled with different planets and star systems to explore. The object of the game is to explore the vast universe in your spaceship, colonize various planets you discover, and build things.
The game never had a Linux release, and the developers haven’t ever talked about Linux support. However, because of evolving technology in Steam and Wine, it is now possible to play No Man’s Sky on Linux. Here’s how to get it running.
Method 1 – SteamPlay and Proton
If you have a Steam account, the easiest way to play No Man’s Sky on Linux, is with SteamPlay and Proton. According to the ProtonDB page on the game, there isn’t any serious bugs or issues preventing it from running on Linux with Valve’s incredible Windows runtime technology.
To start the process, you must get a copy of No Man’s Sky from the Steam store if you do not already own the game. It is USD 59.99.
To purchase No Man’s Sky on Steam, launch the client on the Linux desktop. After launching Steam, log into your account, and click the “Store” button. Then, find the search box, type in “No Man’s Sky,” and press the Enter key to show search results. Click on the game, add it to your cart and buy it. Or, if you prefer to purchase through a web browser, click this link here, log into your account on the website.
After you’ve purchased a copy of No Man’s Sky from Steam, open up Steam settings, click on “Steam Play,” and enable it for all titles, to allow No Man’s sky to be installed on Linux.
Note: need help enabling the SteamPlay feature in your Steam client on Linux? Follow our in-depth guide on how to set it up here.
Once SteamPlay is enabled on your Linux PC, click “Library” to go to your Steam games. Then, look through for “No Man’s Sky” and click the “Install” button to install it on Linux.
Let No Man’s Sky download to your Linux PC. When the downloading process is complete, click on the “Play” button to enjoy the game on Linux!
Troubleshooting
As stated before, the SteamPlay version of No Man’s Sky runs quite well. However, it does not have a perfect rating on ProtonDB. So, if you run into some problems while playing the game, be sure to refer to the No Man’s Sky page on the ProtonDB website for any fixes to problems you may encounter while enjoying the game.
Method 2 – Wine
If you’re not a fan of Steam on Linux, it is still possible to play No Man’s Sky on Linux with the help of the Wine runtime, and GoG.com. To start, head over to the GoG website, and create a new account.
After creating a new account on the website, find the “Store” button at the top and click it to go to the store area of GOG. Click on the “Search for..” box, and type in “No Man’s Sky.” Click on “No Man’s Sky” in the search results to go to the game’s store page.
On the store page, click on the “Add to cart” button. Then, click on the cart icon and purchase the game. Currently, the GOG release of No Man’s Sky is 50% off, at USD 29, instead of USD 59.99.
When you’ve purchased the game, go to your games library on GOG and download No Man’s Sky. Be sure to select the “Download Offline Backup Game Installers” option and not GOG Galaxy!
Setup Wine
Now that you’ve purchased No Man’s Sky from GOG, you must install the Wine runtime on your Linux PC so that the game will install. To install Wine, follow this guide here.
Install No Man’s Sky via Wine
Open up your Linux file manager, and click on the “Downloads” folder. Inside of “Downloads” locate the No Man’s Sky EXE installer, and right-click on it with the mouse.
In the right-click menu, select the option “Wine Windows Program Loader” to launch the installer on your Linux desktop.
Once the installer launches, you’ll see a small box that says “Select Setup Language.” Choose your preferred language and click the “OK” button to continue.
Following the language selection box, a welcome screen appears. Read the welcome screen. Then, check the “EULA” box, and click the “Install” button to set up No Man’s Sky on your Linux PC with Wine.
When the installation is complete, you can launch the game by clicking “Launch” in the installer. Or, double-click on the No Man’s Sky shortcut on the Linux desktop.
Troubleshooting
Running No Man’s Sky on Linux via Wine should be a pretty flawless experience. However, issues can happen. If you run into any problems while playing, be sure to ask for help at WineHQ.org.
We covered a few different tutorials on customizing Minecraft UWP. This version of the app is a bit different from its Java counterpart, and so installing shaders or skins is different as well. That said, the UWP version tries to keep up with the Java version in terms of features. Like the Java version, you can install add-ons in Minecraft on Windows 10. Here’s how.
Add-ons in Minecraft
Before we proceed, you should know that a Minecraft add-on can have two different types. You need to know what each type is before you pick one to install.
.mcpack
This type of add-on will modify existing worlds that you’ve created. As such, to enable it, you will go to the settings of a particular world, and then enable it from there.
.mcworld
This type of add-on will add a new world/map to Minecraft. In order to use it, you will have to go to the Play screen and find the add-on listed as a playable world there.
Download add-on for Minecraft
You can find add-ons for Minecraft online. There’s no shortage of them but make sure that an add-on specifically says it is compatible with the Windows 10 version. An add-on that has been built for the Java version will not run in the Minecraft UWP version.
You can go to the official Minecraft website, and download two sample add-ons from there.
Install add-on in Minecraft
To install an add-on with the .mcworld file extension, double-click it. It will automatically launch Minecraft, and you will see an ‘Importing’ message at the top. Once the import is complete, close and re-open Minecraft.
Click ‘Play’ on the home screen and scroll through the worlds to find the new one you just added.
To install an add-on with the .mcpack file extension, double-click it and it will again open Minecraft. You will see an importing message followed shortly by a message telling you the import was successful. Close and reopen Minecarft.
Click Play on the home screen and you’ll be taken to a list of all the worlds you’ve created. Click the settings button next to the world you want to enable the add-on in.
On the settings screen, you will see an Add-ons section and under it, there will be two tabs; Resource Packs, and Behavior Packs. Check under both these tabs for the newly installed add-on. Select it, and click the check mark button to enable it for that world. Click Play, and enjoy your game.
The function keys, or the Fn keys are standard on any laptop. MacBooks have them, and laptops have them. On MacBooks, the symbols on function keys mean the same thing regardless of model. Rarely is the symbol on a key ever changed. For laptops, it’s different.
Laptops are manufactured by different companies (Dell, HP, Acer, Sony, etc.). All laptops will generally use the function keys as media keys, and brightness control keys but it still leaves a few extra keys left over. Not all laptop manufacturers use the same symbols so, here’s a brief guide to what the symbols on functions keys mean.
Media Keys
The media keys are the easiest to identify: there are usually six of them; the mute key, the volume up key, the volume down key, a play/pause button, a play next button, and a play previous button. The symbols for them look more or less the same and they’re easy enough to identify.
Brightness controls
These too are common symbols you’ll find on the function keys. They normally feature what can best be described as a ‘sun’. They’re in pairs where one decreases the screen brightness while the other one increases it. You’ll have to look a bit closely to see how the manufacturer has distinguished the two.
Airplane mode
If one of your function keys has an Airplane symbol on it, then the button will toggle Airplane mode on Windows 10. Airplane mode disables both the WiFi and Bluetooth on the laptop.
Antenna symbol
Some function keys might have an Antenna symbol which will turn off WiFi. It’s not like the Airplane mode though so your Bluetooth will remain on.
Multiple screens
There are a few different variations of this symbol that you’ll see but anything that looks like a screen is for changing Projection mode. It’s the equivalent of tapping the Win+P keyboard shortcut on Windows 10.
Search icon
On a Windows 10 laptop, the function key with a search icon i.e. a magnifying glass, will open Windows search.
Third-brightness symbol
We mentioned that screen brightness buttons come in pairs but, you may have a function key that carries another brightness control symbol. This is for controlling the backlit keyboard if your laptop has one. It will turn on, or dim, or turn off the light for the keyboard.
Question mark
This symbol denotes ‘Help’, and when tapped will open Microsoft’s help page. It will do this regardless which app is open on your screen.
The function keys are mostly harmless so if you can’t figure out what a symbol means, tapping the key might be the easiest way to figure it out if you can’t guess it and this guide doesn’t cover the symbol you’re looking at.
Users can edit the path environment variables on Windows 10. It’s really easy to do though you need admin rights to make the changes. The path environment variables aren’t all populated by users. There are a few default paths that are part of it. Users can always add or remove them. If you’ve accidentally deleted a single path environment variable, or all of them, you can add them back. If you don’t remember every single path that was added, you can try a few things to restore path environment variables on Windows 10.
Limitations
There are limitations to the methods we’re going to list for recovering the path environment variables. The first is that you should not have restarted your system after removing/deleting them. If you have Command Prompt or PowerShell open, your chances of recovering the path environment variables is much better.
Windows Registry
Tap the Win+R keyboard shortcut to open the run box. In the run box, enter ‘regedit’. Tap Enter. Once the registry editor is open, navigate to the following location;
HKEY_CURRENT_USER\Environment
The values under this key will list the path environment variables. Double-click to open them and copy the path from them all to Notepad. Go ahead and add them back.
It is possible that the Environment key is empty. This is most likely to happen if you restarted your system. In such an event, search the registry for a key named ‘Environment’ and check the values under whatever comes up in the results.
PowerShell
If you already have PowerShell open from before the variables were deleted, switch to it and run the following command. It will be able to read the old path environment variables. You can try running it in a new PowerShell window but it may not work.
Get-ItemProperty -Path "HKCU:\Environment"
Command Prompt
Like the PowerShell method, this too only works if you have a Command Prompt window open from before you deleted or modified the variables. Run the following command and it will return the path environment variables.
echo %PATH%
NTUSER.DAT backup
If you have a back up of your user profile, look for a file called NTUSER.DAT in it. This file’s contents will have your old path environment variables in it. Of course, this method relies on the back up existing in the first place.
The above methods work but they require certain conditions to be met. It goes without saying that it isn’t easy to recover path environment variables once they’re lost and in many cases, you might be better off restoring your system.