https://github.com/adlered/keepurdiskalive
:white_check_mark: 防止移动硬盘休眠神器,支持全平台 | Prevent your mobile hard drive from automatically sleeping, support all platform
https://github.com/adlered/keepurdiskalive
Last synced: 12 months ago
JSON representation
:white_check_mark: 防止移动硬盘休眠神器,支持全平台 | Prevent your mobile hard drive from automatically sleeping, support all platform
- Host: GitHub
- URL: https://github.com/adlered/keepurdiskalive
- Owner: adlered
- Created: 2019-10-20T10:18:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T01:23:27.000Z (over 6 years ago)
- Last Synced: 2025-06-23T16:09:47.034Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Keep Your Disk ALIVE
### [English README Click ME](#english)
本程序通过每隔一段时间读写一次硬盘来防止指定目录休眠。
支持Windows/Linux/MacOS
使用方法:
提取项目release下的KeepUrDiskAlive.jar
前台运行:
```$xslt
Windows下,同时防止C盘和D盘休眠
java -jar KeepUrDiskAlive.jar c:/ d:/
Linux/MacOS下,防止任意目录休眠
java -jar KeepUrDiskAlive.jar /mnt /Volumes/disk1 /home
```
后台运行:
```$xslt
Windows:
javaw -jar KeepUrDiskAlive.jar [参数]
Linux/MacOS:
java -jar KeepUrDiskAlive.jar [参数] &
```
# English
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:
```$xslt
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:
```$xslt
Windows:
javaw -jar KeepUrDiskAlive.jar [Params]
Linux/MacOS:
java -jar KeepUrDiskAlive.jar [Params] &
```