Script request.

FormulaUno

Junior Member
Dec 12, 2010
4
0
0
I don't know if this should be posted here. My laptop has 2 Western Digital drivers that spin down every half a minute when there is no activity. I configured windows to keep the hard drives active all the time but it didn't help. During gaming there are 5 second freezes when the game tries to access one of the hard drives. So I thought maybe someone can create a script that edits and overwrites a notepad file every 5 seconds so the hard drive wouldn't spin down. Anything that isn't CPU intensive to keep the hard drives busy.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,634
4,562
75
Batch file:

Code:
:redo
echo writing > %HOME%\temp.txt
ping -n 25 127.0.0.1
goto redo

ping -n is a hack for sleep. Make sure you don't have anything important in %HOME%\temp.txt before you start. :)
 

FormulaUno

Junior Member
Dec 12, 2010
4
0
0
It works but it's pinging the C drive. I need it to ping the D drive.

EDIT:Nevermind I just needed to put it in D.
 
Last edited: