本程序通过每隔一段时间读写一次硬盘来防止指定目录休眠。
支持Windows/Linux/MacOS
使用方法:
提取项目release下的KeepUrDiskAlive.jar
前台运行:
Windows下,同时防止C盘和D盘休眠
java -jar KeepUrDiskAlive.jar c:/ d:/
Linux/MacOS下,防止任意目录休眠
java -jar KeepUrDiskAlive.jar /mnt /Volumes/disk1 /home
后台运行:
Windows:
javaw -jar KeepUrDiskAlive.jar [参数]
Linux/MacOS:
java -jar KeepUrDiskAlive.jar [参数] &
The program prevents the specified directory from sleeping by reading and writing the hard disk at regular intervals.
Support for Windows/Linux/MacOS
Instructions:
Extract the KeepUrDiskAlive.jar under the project release
The front desk is running:
Windows, while preventing C and D disks from sleeping
java -jar KeepUrDiskAlive.jar c:/ d:/
Prevent arbitrary directory hibernation under Linux/MacOS
java -jar KeepUrDiskAlive.jar /mnt /Volumes/disk1 /home
Background process:
Windows:
javaw -jar KeepUrDiskAlive.jar [Params]
Linux/MacOS:
java -jar KeepUrDiskAlive.jar [Params] &