Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Defrag batch script
Name: xsystemx Date: June 24, 2008 at 08:03:37 Pacific OS: WinXP CPU/Ram: 1024MB Product: HP
Comment:
Trying to make the following script work:
@echo off REM echo #####Defragmentation will now begin##### for /F "tokens=2-4 delims=/- " %%A in ('date/T') do set mdate=%%A%%B%%C date /t >> c:\defrag_log.txt echo %mdate% >> c:\defrag_log.txt defrag c: -v >> c:\defrag_log.txt
Getting the following error: The process cannot access the file because it is being used by another process.
Summary: Hey everyone, I am very new at this... I hope I can explain what I am looking for. I need to write a batch script. I have a filename, with a date in the filename. I need to extract the date, and sa...
Summary: I need help with a batch script that will do the following: Check to see if any folders or files exist in C:\Temp and if it does delete all folder in C:\Archive. If no folders or files exist in C:\Tem...
Summary: M2G is right about needing to know the date layout. This used to drive me nuts at work. At first I thought the different layouts were due to different OSs on different (Win) boxes. Wrong. The defaul...