megadeth9001

Work laziness.

Nov 24th, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. set /p UserInputPath= What is the Machine name in question?
  2. pushd \\%UserInputPath%\c$
  3.  
  4. cd windows\temp
  5.  
  6. dir
  7.  
  8. set /p Continue= Do you wish to continue?
  9. if %continue% == yes ( cd\windows\logs\cbs ) ELSE ( if [not] %continue% == yes ( popd and ( taskkill /im cmd.exe ) ) )
  10.  
  11. dir
  12.            
  13. set /p Continues= Do you wish to continue?
  14. if %continues% == yes ( cd\windows\temp ) ELSE ( if [not] %continues% == yes ( popd and ( taskkill /im cmd.exe ) ) )
  15.  
  16. del cab_*
  17.  
  18. cd\windows\logs\cbs
  19.  
  20. del *
  21.  
  22. echo Disk space is looking better now!
  23.  
  24. pause
Advertisement
Add Comment
Please, Sign In to add comment