alperefe Posted December 21, 2006 Share Posted December 21, 2006 this is my defrag batch;for /F "eol= tokens=1 delims=( " %%i in (DrvLtr.txt) do set DrvLtr=%%i& call :dsKchk:dsKchkIf %DrvLtr% == end goto :eofchkdsk %DrvLtr% >resultC.logIf not errorlevel 3 goto :defragIf not exist %DrvLtr%\windows goto :dskchkon:dskchkoffcd\%DrvLtr%echo Y chkdsk /F /Rgoto :defrag:dskchkonchkdsk %DrvLtr% /F /R >resultOther.log:defragcd\%DrvLtr%defrag %DrvLtr% -b >resultdefrag.logdefrag %DrvLtr% >resultdefrag.log:EOFı am tryin to generate log files and info prompt for every step but especially log files overwritten everytime it is switched to a new drive; thats what ı tried;>resultC.logU have any suggestion?Thank You in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now