Skip to content

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:

  1. Install Node.js on Windows
    1. Go to the official Node.js website: https://nodejs.org
    2. Download the LTS (Recommended) Windows Installer.
    3. Run the installer and follow the prompts (accept defaults).
  2. Install zap2xml dependencies and build

Open Command Prompt and run:

cd path\to\zap2xml
npm install
npm run build
  1. 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.

  1. Schedule a daily task
    1. Open Task Scheduler (search for it in the Start menu).
    2. Click "Create Basic Task..."
    3. Name it (e.g., "zap2xml Daily Update").
    4. Set the trigger to "Daily" and choose your preferred time.
    5. For "Action", select "Start a program".
    6. Browse to your run-zap2xml.bat file.
    7. Finish the wizard.

This will run your zap2xml script once a day with your specified arguments.

Clone this wiki locally