diff options
author | breadcat | 2020-07-05 18:53:23 +0100 |
---|---|---|
committer | breadcat | 2020-07-05 18:53:23 +0100 |
commit | 4c348b93f1afebb67f6209d70527dc136cb165e2 (patch) | |
tree | a5ca6533449d0d48075d23e88b91d5781b1f7171 | |
parent | be8a9f478ef52c0d62223895941f46516dad777f (diff) | |
download | win10-prep-4c348b93f1afebb67f6209d70527dc136cb165e2.tar.gz win10-prep-4c348b93f1afebb67f6209d70527dc136cb165e2.tar.bz2 win10-prep-4c348b93f1afebb67f6209d70527dc136cb165e2.zip |
Only list directories
Causes issues if re-run otherwise
-rw-r--r-- | 0-win10prep.bat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/0-win10prep.bat b/0-win10prep.bat index 43a8b79..164a985 100644 --- a/0-win10prep.bat +++ b/0-win10prep.bat @@ -316,13 +316,13 @@ rem add steam shortcode reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\steam.exe" /v "Path" /t REG_SZ /d "%programfiles(x86)%\Steam\\" /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\steam.exe" /ve /t REG_SZ /d "%programfiles(x86)%\Steam\Steam.exe" /f rem move syncthing binaries up a directory -dir /b "%programfiles%\Syncthing" > "syncthing-ver.tmp" +dir /a:d /b "%programfiles%\Syncthing" > "syncthing-ver.tmp" set /p syncthing-ver=<"syncthing-ver.tmp" move "%programfiles%\Syncthing\%syncthing-ver%\*" "%programfiles%\Syncthing\" rd /s /q "%programfiles%\Syncthing\%syncthing-ver%" del "syncthing-ver.tmp" rem move rclone binaries (similar to syncthing) -dir /b "%programfiles%\Rclone" > "rclone-ver.tmp" +dir /a:d /b "%programfiles%\Rclone" > "rclone-ver.tmp" set /p rclone-ver=<"rclone-ver.tmp" move "%programfiles%\Rclone\%rclone-ver%\*" "%programfiles%\Rclone\" rd /s /q "%programfiles%\Rclone\%rclone-ver%" |