Question:
how to delete files on secondary hard drive?
OhMyGoD
2009-10-06 00:10:48 UTC
how to change the code to hard drive D:\?
instead of main drive? C:\

@echo off
echo Cleaning System...
del /f /s /q %systemdrive%\Thumbs.db
del /f /s /q %systemdrive%\*.m3u
del /f /s /q %systemdrive%\*.md5
del /f /s /q %systemdrive%\*.sfv
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
echo Succeed
echo. & pause
Three answers:
DУϨL∃ҲIC bunny
2009-10-06 00:21:37 UTC
Replace %systemdrive% with D:



for example:

del /f /s /q D:\Thumbs.db
Bert H
2009-10-06 00:31:39 UTC
I don't understand the need for a batch file when it is so easy to do it otherwise.



If you have designated the secondary drive as a 'slave' you can run it as a normal drive.



If you have not done so, do so.



How?

Move the pin jumper (on the back of the secondary) over one place towards the middle.



Hook it up with the ribbon cable (center connector) colored edge on pin #1 (side).



The OS will now recognize it and designate a drive letter.



You can now use it as a normal HDD.

;-)
avemanoe
2009-10-06 00:18:10 UTC
simply after the letter q put d:


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...