File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11build /
2+ dist /
23
34# Generated by Cargo
45# will have compiled files and executables
Original file line number Diff line number Diff line change 11cargo build -- release
22if (Test-Path ./ build) {
3- Remove-Item - Path ./ build - Recurse
3+ Remove-Item - Path ./ build/* - Recurse
4+ } else {
5+ New-Item - Path ./ build - ItemType directory > $null
6+ }
7+ if (Test-Path ./ dist) {
8+ Remove-Item - Path ./ dist/* - Recurse
9+ } else {
10+ New-Item - Path ./ dist - ItemType directory > $null
411}
5- New-Item - Path ./ build - ItemType directory > $null
6- New-Item - Path ./ dist - ItemType directory > $null
712Copy-Item - Path ./ target/ release/ tabletdrivercleanup.exe - Destination ./ build
813Copy-Item - Path ./ eng/ dump.bat - Destination ./ build
914Copy-Item - Path ./ eng/ dry_run.bat - Destination ./ build
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ tabletdrivercleanup.exe --dump
1111pnputil /enum-drivers > .\dumps\pnputil_drivers.txt
1212pnputil /enum-devices /connected /drivers > .\dumps\pnputil_devices.txt
1313
14- md .\dumps\DriverStore
14+ mkdir " .\dumps\DriverStore" 2 > nul
1515
1616for /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 (
19- xcopy /Q /Y " %%H " .\dumps\DriverStore\%%~nxG > nul
19+ xcopy /Q /Y " %%~ H " " .\dumps\DriverStore\%%~nxG " > nul
2020 < nul set /p " = Dumped '%%~nxH ' !CR!"
2121 )
2222)
You can’t perform that action at this time.
0 commit comments