This project is a Go application that manages processes and schedules tasks based on a configuration file. The application is designed to handle process termination, window management, and batch file execution on Windows systems.
Features
Terminate existing processes by name.
Close old command prompt windows.
Execute a batch file based on the schedule defined in a YAML configuration file.
Schedule tasks using a cron-like scheduler.
Getting Started
Prerequisites
Go 1.17 or higher
Access to a Windows system for process management and window handling
Installation
Clone the repository:
git clone https://github.com/citizen-nsl/autostart.git
cd autostart
Initialize the Go module:
If not already initialized, create a go.mod file by running:
go mod init autostart
Install dependencies:
Install the required Go packages using:
go get github.com/StackExchange/wmi
go get github.com/robfig/cron/v3
Prepare configuration file:
Create a file named m308.yaml in the root of the project directory with the following format: