PATH variable optimizer and cleaner

You will maybe run into the problem that your PATH variable length is higher than 2048 characters, which is allowed maxium.

If this occurs your PATH setting will stop working and you need some automatic tool to optimize and clean your path by removing unused records and optimizing/shortening used records.

Download the tool to do this here: https://www.softpedia.com/get/System/System-Miscellaneous/Windows-Path-Cleaner.shtml

It is a command line tool and if you type for help:

cleanpath --help

You will get this:


cleanpath 1.0.0
Copyright (C) 2022 cleanpath
-m, --machine (Default: false) Target machine path
-c, --change (Default: false) Change path
-l, --list (Default: false) List path
-f, --full (Default: false) List full path
-y, --yes (Default: false) Respond yes to confirmation
--help Display this help screen.
--version Display version information.

To optimize your global (computer account) PATH variable type:

cleanpath -m -c -y

To optimize your user’s PATH variable type:

cleanpath -m -c -y

Continue Reading

How to delete locked folder in Windows

  • Windows + R (Run) and type resmon.exe for ResourceMonitor
  • Go to CPU section > Associated handles and in search box type your folder name (part of)
  • You will see now which process is holding this folder and preventing it from deletion and in this case it is from TortoiseGit app. In order to disable this cache go to Tortoise Git > Settings > Icon Overlays and set Cache to None
Continue Reading

Remove read-only attributes from WD (Western Digital) disk

  1. Right-click START and choose “Command Prompt” (run as administrator)
  2. Type “diskpart” and press Enter.
  3. Type “list volume” and press Enter.
  4. Type “select volume #”, where # is the number of the drive that’s giving you the “write-protected” error. You might be able to identify the drive by its size – your internal drives such as C, etc, are usually listed first also.
  5. Type “attributes disk clear readonly” and press Enter.
Continue Reading

Disable zoom with mouse wheel in Firefox

  1. Open Firefox. 
  2. In the address bar type in about:config and press Enter.
  3. Click I’ll be careful, I promise
  4. Type mousewheel.with_control.action in the Search bar at the top of the about:config page. 
  5. Double-click mousewheel.with_control.action from the Preference Name column. 
  6. Enter the number 0 in the dialog box. 
  7. Click OK

In order to disable multi-touch pinch zoom-in and zoom-out repeat the procedure as previous one and set:

browser.gesture.pinch.in & browser.gesture.pinch.out to false.
Alternatively you could try setting zoom.maxPercent & zoom.minPercent to 100 …

Continue Reading

Create self-signed SSL using OpenSsl

Download OpenSsl installer first:
https://slproweb.com/products/Win32OpenSSL.html

Generate private key first:
[YOUR_OPENSSL_BIN_PATH]\openssl.exe genrsa -out [YOUR_OUTPUT_PATH]\YourDomain.com.key 2048

Generate CSR request (set all data but set at the end empty password and company name):
[YOUR_OPENSSL_BIN_PATH]\openssl.exe req -new -nodes -key [YOUR_OUTPUT_PATH]\YourDomain.com.key -out d:\Utils\Certificates\YourDomain.com.csr

Generate certificate that is valid 10 years, or 3652 days
[YOUR_OPENSSL_BIN_PATH]\openssl.exe x509 -req -days 3652 -in [YOUR_OUTPUT_PATH]\YourDomain.com.csr -signkey [YOUR_OUTPUT_PATH]\YourDomain.com.key -out [YOUR_OUTPUT_PATH]\YourDomain.com.cert

Set port 995 for incoming email and port 465 for outgoing email – put them into firewall (Inbound and Outbound rules) in Advanced Firewall settings

Continue Reading

How to Restore a USB drive using Diskpart

  1. Open a command Prompt as administrator (cmd.exe)
  2. Type Diskpart then press Enter
  3. Type List Disk then press Enter
  4. Type Select Disk X (where X is the disk number of your USB drive) then press Enter
  5. Type Clean then press Enter
  6. Type Create Partition Primary then press Enter
  7. Type Format fs=Fat32 Quick then press Enter (You can also use NTFS or exFAT)
  8. Type Active then press Enter
  9. Type Exit then press Enter
Continue Reading
1 2 3 11