Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.
@echo off for %%x in (C D E Q S T U) do ( if exist %%x:\ chkdsk %%x: /i if ERRORLEVEL 0 goto ERRORLEVEL 0 if ERRORLEVEL 1 goto ERRORLEVEL 1 if ERRORLEVEL 2 goto ERRORLEVEL 2 if ERRORLEVEL 3 goto ERRORLEVEL 3 :ERRORLEVEL 0 eventcreate /l SYSTEM /so chkdsktest /t INFORMATION /id 10 /d "No errors were found on %%x." goto end :ERRORLEVEL 1 eventcreate /l SYSTEM /so chkdsktest /t INFORMATION /id 11 /d "Errors were found and fixed on %%x." goto end :ERRORLEVEL 2 eventcreate /l SYSTEM /so chkdsktest /t WARNING /id 12 /d "Performed disk cleanup (such as garbage collection) or did not perform cleanup because /f was not specified on %%x." goto end :ERRORLEVEL 3 eventcreate /l SYSTEM /so chkdsktest /t ERROR /id 13 /d "Could not check the disk, errors could not be fixed, or errors were not fixed because /f was not specified on %%x." goto end ) :end
|CMD File Runs Fine By Itself But Not As Scheduled Task||21||64|
|Download from URL using proxy server and batch file||2||72|
|Move files older than “x” days, and overwrite if already in destination folder||7||39|
|robocopy vs xcopy vs copy||8||92|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
23 Experts available now in Live!