I still use a version of the calibre-portable.bat file for my own use
In my case it is not to be able to run as a portable installation, but instead to control placement of the binaries, library files, metadata database, source files and temp files. If nothing else the .bat file is a useful example of the methods available to control such placement.