-
-
Notifications
You must be signed in to change notification settings - Fork 31
Running on Windows
Jef LeCompte edited this page Jul 19, 2025
·
2 revisions
Here’s a quick guide for installing Node.js on Windows and setting up a daily cron-like scheduled task to run your zap2xml script with the required arguments:
- Install Node.js on Windows
- Go to the official Node.js website: https://nodejs.org
- Download the LTS (Recommended) Windows Installer.
- Run the installer and follow the prompts (accept defaults).
- Install zap2xml dependencies and build
Open Command Prompt and run:
cd path\to\zap2xml
npm install
npm run build
- Create a batch file to run zap2xml
Create a file named run-zap2xml.bat
in your zap2xml folder with the following content (edit the arguments as needed):
@echo off
cd /d path\to\zap2xml
node dist/index.js --lineupId=YOUR_LINEUP_ID --timespan=15 --country=USA --postalCode=12345
Replace YOUR_LINEUP_ID
, 15
, USA
, and 12345
with your actual values.
- Schedule a daily task
- Open Task Scheduler (search for it in the Start menu).
- Click "Create Basic Task..."
- Name it (e.g., "zap2xml Daily Update").
- Set the trigger to "Daily" and choose your preferred time.
- For "Action", select "Start a program".
- Browse to your
run-zap2xml.bat
file. - Finish the wizard.
This will run your zap2xml script once a day with your specified arguments.