ver 8.1.0.4545 not handling file associations correctly

[expired user #7336]'s profile image [expired user #7336] posted 10 years ago in General Permalink
Copied from a previous thread ...

I think there is a problem with how Heidi is handling parameters when I try to load an .sql file. I have 2 files on my desktop. 'Lookup MCI.sql' & 'fixed.sql'

When I double click on the 'Lookup MCI.sql' file I get an error dialog that says 'Could not load file(s): MCI.sql. It's leaving off the part of the filename before the space character.

I opened Heidi and loaded the file manually (without issue) and saved it as 'fixed.sql', and then exited Heidi. I tried double clicking on 'fixed.sql' and the error dialog says "Could not load file(s): Settings\Administrator\Desktop\fixed.sql". The full path for the file is 'C:\Documents and Settings\Administrator\Desktop\fixed.sql' again it seems to be breaking up at the space character

to which the reply was ....
Use doublequotes for file names on the command line, not single quotes.

This is NOT a shortcut, it is a file on the desktop the quotes were only in my post to distinguish the file name. I'm double clicking on a file who's extension is associated with Heidi
ansgar's profile image ansgar posted 10 years ago Permalink
Ah ok, thanks for verifying that. I was assuming you were using command line. I will try to reproduce here.
Code modification/commit from ansgar.becker, 10 years ago, revision 8.1.0.4583
Passing filenames per command line: Remove found match from input string after having found a quoted filename, so the second call to GetFileNames does not find some incomplete filename due to whitespaces in its name. See http://www.heidisql.com/forum.php?t=13743
ansgar's profile image ansgar posted 10 years ago Permalink
Yes, confirmed. And fixed in r4583.

Please login to leave a reply, or register at first.