In short, the Windows batch magic variable %~dp0 (which gives the drive letter and path of the current batch file) and %~n0 (the prefix of the name of the current file) could be very helpful for this. If anyone here knows about Windows batch files, please check this!
I think this can lead to a demeter installation that could be completely portable (expect for what Start Menu and Shortcuts point to). This would be very helpful for beamlines, as there could be one installation that could see exactly the same version from multiple machines.