View Single Post
Old 08-14-2017, 10:37 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
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.
kovidgoyal is offline   Reply With Quote