@echo off rem Double-click this to install the label watcher: from then on, every .zpl rem that lands in your Downloads folder is printed and moved to rem Downloads\zpl-sts-printed. It starts with Windows. rem rem print-zpl-watcher.cmd install (or reinstall) and start rem print-zpl-watcher.cmd uninstall stop it and remove it rem print-zpl-watcher.cmd status is it installed and running? rem rem print-zpl-watcher.ps1 must be in the same folder as this file. Read it: rem it is short, and it says everything the watcher does and does not do. rem -ExecutionPolicy Bypass applies to this one run and changes nothing on rem the machine. setlocal set "MODE=-Install" if /i "%~1"=="uninstall" set "MODE=-Uninstall" if /i "%~1"=="status" set "MODE=-Status" if not exist "%~dp0print-zpl-watcher.ps1" ( echo print-zpl-watcher.ps1 is not beside this file. Save both into the same folder and try again. echo. pause exit /b 1 ) powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0print-zpl-watcher.ps1" %MODE% echo. pause