Last active
February 5, 2018 14:52
-
-
Save sohmc/5362b8f80f58abf6e96cec512af0a2be to your computer and use it in GitHub Desktop.
Update Nautilus Window Coordinates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| REM Nautilus Window Fixer | |
| REM Version 1.0 | |
| REM Michael Soh | |
| REM | |
| REM This script can be obtained from Michael Soh's gist: | |
| REM https://gist.github.com/sohmc/5362b8f80f58abf6e96cec512af0a2be | |
| REM | |
| REM This script is licensed via the GNU GPL 3.0 | |
| REM If you require a different license, please contact Michael Soh | |
| REM directly. | |
| REM Look up all keys that have "xpos" as a value and then only return | |
| REM the registry key itself. | |
| REG QUERY HKEY_CURRENT_USER\Software\Thermo\Nautilus\9.3\Windows /v xpos /s | FINDSTR /b /c:"HKEY" > %USERPROFILE%\tmp_nautilus_fix.txt | |
| REM Now loop through the output, setting values as necessary. | |
| FOR /F "tokens=*" %%X in (%USERPROFILE%\tmp_nautilus_fix.txt) DO ( | |
| REG ADD %%X /f /v xpos /d 0 > nul 2>&1 | |
| IF NOT ERRORLEVEL 0 ECHO Unable to update Registry Key %%X Value xpos | |
| REG ADD %%X /f /v ypos /d 0 > nul 2>&1 | |
| IF NOT ERRORLEVEL 0 ECHO Unable to update Registry Key %%X Value ypos | |
| ) | |
| ECHO Script complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment