From 4c348b93f1afebb67f6209d70527dc136cb165e2 Mon Sep 17 00:00:00 2001 From: breadcat Date: Sun, 5 Jul 2020 18:53:23 +0100 Subject: Only list directories Causes issues if re-run otherwise --- 0-win10prep.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '0-win10prep.bat') 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%" -- cgit v1.2.3