Windows 10 How to undo a batch script

  • Thread starter Thread starter TekGung
  • Start date Start date
T

TekGung

I decided it would be a good idea to download and run a random batch script from the internet to get the ability to move files around freely, rather than sticking to the presets. Big Mistake. The batch script caused me to gain this ability but effectively make dark mode look like a kindergartener messed with the colors when the dev wasn't looking. Basically in Dark Mode the text is staying black and the detail bar at the top stays in light mode. I need to undo this batch file, and this is the text:


REM Activate free sorting for files in Windows 7 www.unawave.de


REM --- 1. Step: Add keys
REM --- 1a for General Folders
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v FFlags /t REG_DWORD /d 0x43000001 /f
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v Mode /t REG_DWORD /d 0x00000004 /f

REM --- 1b for Documents Folders
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7D49D726-3C21-4F05-99AA-FDC2C9474656}" /v FFlags /t REG_DWORD /d 0x43000001 /f
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7D49D726-3C21-4F05-99AA-FDC2C9474656}" /v Mode /t REG_DWORD /d 0x00000004 /f

REM --- 1c for Music Folders
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94D6DDCC-4A68-4175-A374-BD584A510B78}" /v FFlags /t REG_DWORD /d 0x43000001 /f
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94D6DDCC-4A68-4175-A374-BD584A510B78}" /v Mode /t REG_DWORD /d 0x00000004 /f

REM --- 1d for Picture Folders
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{B3690E58-E961-423B-B687-386EBFD83239}" /v FFlags /t REG_DWORD /d 0x43000001 /f
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{B3690E58-E961-423B-B687-386EBFD83239}" /v Mode /t REG_DWORD /d 0x00000004 /f

REM --- 1e for Videos Folders
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5FA96407-7E77-483C-AC93-691D05850DE8}" /v FFlags /t REG_DWORD /d 0x43000001 /f
REG ADD "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5FA96407-7E77-483C-AC93-691D05850DE8}" /v Mode /t REG_DWORD /d 0x00000004 /f

REM --- 2. Step: Export everything under the key AllFolders in a separate file AllFolders.reg
REG EXPORT "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders" AllFolders.reg

REM --- 3. Step: Delete everything under the key Bags
REG DELETE "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f

REM --- 4. Step: Import again exported file AllFolders.reg
REG IMPORT AllFolders.reg

REM --- 5. Step: Delete exported file AllFolders.reg
del AllFolders.reg


Can someone please help me by sending me an "undone" version of this that will effectively reverse the effect? Much appreciated. I found a solution in another forum but I have no clue what the person is talking about and would like some assistance.


Many Thanks.


Also, Microsoft, if you see this, please allow us to move and organize files as we wish and not have to keep them sorted by one of your preset functions. I really don't like to have Assorted and Not Assorted (Folders I created) separated by My Favorites (Another Folder I Created). It just so irks me to not have any freedom with folder placement in the UI.

Continue reading...
 

Similar threads

M
Replies
0
Views
1
Mr_eL
M
K
Replies
0
Views
7
kuVinod7
K
M
Replies
0
Views
12
Mai Thiên Kim Nguyễn
M
M
Replies
0
Views
13
Mai Thiên Kim Nguyễn
M
Back
Top