Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set /p UserInputPath= What is the Machine name in question?
- pushd \\%UserInputPath%\c$
- cd windows\temp
- dir
- set /p Continue= Do you wish to continue?
- if %continue% == yes ( cd\windows\logs\cbs ) ELSE ( if [not] %continue% == yes ( popd and ( taskkill /im cmd.exe ) ) )
- dir
- set /p Continues= Do you wish to continue?
- if %continues% == yes ( cd\windows\temp ) ELSE ( if [not] %continues% == yes ( popd and ( taskkill /im cmd.exe ) ) )
- del cab_*
- cd\windows\logs\cbs
- del *
- echo Disk space is looking better now!
- pause
Advertisement
Add Comment
Please, Sign In to add comment