Skip to content

Commit 2c9b0e2

Browse files
committed
Use mkdir instead of md in dump.bat, ignore errors (folder already exists)
1 parent e1f8de4 commit 2c9b0e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eng/dump.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ tabletdrivercleanup.exe --dump
1111
pnputil /enum-drivers > .\dumps\pnputil_drivers.txt
1212
pnputil /enum-devices /connected /drivers > .\dumps\pnputil_devices.txt
1313

14-
md .\dumps\DriverStore
14+
mkdir ".\dumps\DriverStore" 2>nul
1515

1616
for /D %%G in ("C:\Windows\System32\DriverStore\FileRepository\*") DO (
17-
md .\dumps\DriverStore\%%~nxG
17+
mkdir ".\dumps\DriverStore\%%~nxG" 2>nul
1818
for /F %%H in ("%%~G\*.inf") DO (
1919
xcopy /Q /Y "%%H" .\dumps\DriverStore\%%~nxG > nul
2020
<nul set /p "=Dumped '%%~nxH' !CR!"

0 commit comments

Comments
 (0)