This script will avoid your external HDD to go to sleep All you have to do is to doubleclick the execute.bat file. How does it work? The script creates a log file in the root directory of your HDD an adds a new line at each interval. Interval To date there is a fixed interval of 300 seconds. Drive To date there is a fixed drive "E:".