npm install uglify-js --global
npm install less --global
These scripts allow you to specify a source and a target directory.
For LESS/CSS, the LESS file is compiled into CSS in the same directory.
The CSS is then compressed into the target directory.
For JS, the js file is compressed into the target directory.
When you run the batch file, it will scan and process all matching files and then it will stay in the background, monitoring the source directory.