This page is a repository for any useful Win32 batch files and WSH scripts I write, that other people might find useful. The scripts are all written on and targeted for Windows 2000.
Script files not enclosed in Zip files are posted to the site as text files to avoid accidental execution. Copy and paste the text into a text editor or download the file and remove the .txt extension from the filename to use them.
- swapd – a batch script to exchange the current path with the topmost item of the command line directory stack. For more information about working with the directory stack, use
- Convert Line Endings – a JScript file to convert all the line endings of a file into DOS format (CRLF). The script will handle files with hopefully any combination of DOS (CRLF), UNIX (LF) and Macintosh (CR) line endings. The script also contains a function to convert the filename of an WSH path argument into its full form (WSH path arguments seem to arrive from Explorer in 8.3 form). You can drop files onto the script for conversion or set the script to be an action for one or more file types in Explorer.