View Single Post
Old 08-15-2017, 12:14 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,784
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kovidgoyal View Post
Saving to disk opens the target folder after saving. Which is done by passing the folder path to windows. Since you have a test.bat file and test folder, when calibre asks windows to open the folder it executes the bat file instead, which presumably happens because microsoft thought it a good idea to execute files with .exe/.bat and .cmd extensions even when the full filename with extension is not supplied. Given that microsoft also thought having magic filenames in their filesystems sunch as NUL and COM was a good idea, I'm not surprised.
You really can't blame Microsoft for those reserved names since device special files were used long before Gates and Allen wrote their first line of code. You might place some blame on Gary Kildall and CP/M since CP/M's PIP program supported a number of special device names and QDOS (the ancestor of MS/PC-DOS) inherited them (hmmm.... perhaps pirated them might come closer ) but then we have to move back to DEC's RT-11 or OS/8 for their influence on Gary Kildall. Not so fond memories of RT-11 and dishwasher sized disk drives. Subtract One and Branch. Honestly, we weren't referring to management when we muttered that opcode.
DNSB is offline   Reply With Quote