Skip to content

kalaiselvan-arumugam/NASCopier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running a JAR File Using a Batch Script and Task Scheduler

Step 1: Create a Batch File to Run the JAR

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.


Step 2: Configure Task Scheduler

  1. Open Task Scheduler (taskschd.msc).
  2. Click on Create Basic Task.
  3. Set a Name and Description for the task.
  4. Click Next and set the Trigger:
    • Choose your preferred schedule (e.g., Daily, Hourly).
  5. Click Next and set the Action:
    • Select Start a Program.
    • Browse and select the NASCopier.bat file.
  6. Click Next, review the settings, and click Finish.

Your JAR file will now execute automatically at the specified interval.

About

A wrapper of robocopy to sync directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages