This is a collection of Windows command shell (.cmd) scripts that I find useful.
admin-- Execute command as administratorbatch-lf-fail-- Illustrates how cmd files may fail if they have LF line endingsclip-edit-- Invoke %EDITOR% to place content on the clipboardenvgui-- Launch the Windows environment variable GUIget-tempfile-- Creates a temporary file (or directory) name for command scriptspathlist.py-- Pretty report of current path list, noting non-existent and duplicate entriespdfcat-- Concatenates multiple PDF files into onesleep-- One-liner simple sleep (in seconds)touch-- Creates/updates the timestamp of a given fileupsearch-- Locate nearest target file upwards from current working directoryvmove-- Batch move/rename utility using the preferred %EDITOR%
admin-launch.cmd-- Demonstrates how to auto-relaunch a script with admin priviledgesfailexit.cmd-- How to properly exit a CMD script with a non-zero exit code & ERRORLEVEL
Steve Hollasch
steve@hollasch.net
https://github.com/hollasch