Create a batch file (NASCopier.bat
) with the following content:
@echo off
java -Xmx512m -Dfile.encoding=UTF-8 -jar C:\path\to\your\NASCopier.jar
Save this file in a convenient location.
- Open Task Scheduler (
taskschd.msc
). - Click on Create Basic Task.
- Set a Name and Description for the task.
- Click Next and set the Trigger:
- Choose your preferred schedule (e.g., Daily, Hourly).
- Click Next and set the Action:
- Select Start a Program.
- Browse and select the
NASCopier.bat
file.
- Click Next, review the settings, and click Finish.
Your JAR file will now execute automatically at the specified interval.