Skip to content

Commit 3388bc3

Browse files
author
Jimmy Briggs
committed
CMD Executables
1 parent ba4a401 commit 3388bc3

15 files changed

+53
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:: Clear and reset thumbnail cache
2+
@echo off
3+
TASKKILL /IM explorer.exe /F
4+
TIMEOUT /T 2 /NOBREAK >nul
5+
DEL /F /S /Q /A "%LOCALAPPDATA%\Microsoft\Windows\Explorer\thumbcache_*"
6+
TIMEOUT /T 2 /NOBREAK >nul
7+
START explorer.exe
8+
pause

Command-Line/DISM-Repair-Image.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DISM /Online /Cleanup-Image /RestoreHealth

Command-Line/Rebuild icon cache.cmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:: Rebuild icon cache
2+
@echo off
3+
ie4uinit.exe -show
4+
TASKKILL /IM explorer.exe /F
5+
TIMEOUT /T 2 /NOBREAK >nul
6+
DEL /A /F /Q "%LOCALAPPDATA%\IconCache.db"
7+
DEL /A /F /Q "%LOCALAPPDATA%\Microsoft\Windows\Explorer\iconcache_*"
8+
TIMEOUT /T 2 /NOBREAK >nul
9+
start explorer.exe
10+
pause

Command-Line/Reset spooler.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NET STOP spooler
2+
DEL /F /S /Q %SYSTEMROOT%\System32\spool\PRINTERS\*
3+
NET START spooler
4+
pause
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Windows\System32\shutdown.exe -r -o -f -t 05 -c "Restarting in 5 seconds to boot into recovery mode."

Command-Line/Useful-DISM.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:: Clean up the WinSxS folder (useful after each Win update)
2+
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
3+
4+
5+
:: Opens cleanmgr (windows own CCleaner solution) with all hidden options
6+
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
7+
8+
9+
:: Check online the status of the current WinImage
10+
Dism.exe /online /Cleanup-Image /StartComponentCleanup /restorehealth
11+
12+
13+
:: Cleans the WinSxS folder
14+
Dism.exe /online /cleanup-image /startcomponentcleanup
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
choco upgrade microsoft-windows-terminal -y

Command-Line/create-R-project.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"C:\Program Files\R\R-4.0.2\bin\x64\R.exe"
2+
usethis::create_project(getwd())
3+
usethis::use_git()
4+
q()

Command-Line/devdocs.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\tools\DevDocs\DevDocs-0.7.1.exe

Command-Line/dismsfc.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DISM.exe /Online /Cleanup-image /Scanhealth
2+
DISM.exe /online /cleanup-image /restorehealth
3+
sfc /scannow

Command-Line/mkrproj.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Rscript "C:\Program Files\R\R-4.0.2\etc\x64\mkrpkg.R" %1
2+

Command-Line/pakk.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@C:/PROGRA~1/R/R-devel/bin/x64/Rscript.exe -e "library(pak); pak::pak()" %*

Command-Line/resetwu.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sudo "C:/tools/WindowsUpdateTools/ResetWUEng.cmd"

Command-Line/update-npm.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm i npm@latest -g

Command-Line/virusscan.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1

0 commit comments

Comments
 (0)