Skip to content
Snippets Groups Projects
Commit 84786c30 authored by JG's avatar JG
Browse files

Unified pushd/popd usage

parent 77201ea5
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,10 @@ for /f "tokens=*" %%a in ('dir /A:D /b') do ( ...@@ -34,10 +34,10 @@ for /f "tokens=*" %%a in ('dir /A:D /b') do (
pushd "C:\Users\%%a\AppData\Local\Microsoft\Windows" && ( pushd "C:\Users\%%a\AppData\Local\Microsoft\Windows" && (
rd /s /q WebCache rd /s /q WebCache
del /q /f WebCacheLock.dat del /q /f WebCacheLock.dat
)
popd popd
) )
) )
)
popd popd
) )
echo Done. echo Done.
......
...@@ -32,8 +32,8 @@ net stop spooler ...@@ -32,8 +32,8 @@ net stop spooler
pushd "%~dp0\ScriptFiles\PrinterNotInstallable" && ( pushd "%~dp0\ScriptFiles\PrinterNotInstallable" && (
reg import "Printer Spooler Registry.reg" reg import "Printer Spooler Registry.reg"
robocopy spool C:\Windows\System32\spool * robocopy spool C:\Windows\System32\spool *
)
popd popd
)
net start spooler net start spooler
echo Done. echo Done.
pause pause
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment