Diogo Eduardo Goncalves Zulli a écrit :
I set explorer default action for .sql to open with SciTE, ok that
You are on the Scintilla mailing list here, not the SciTE one.
Scintilla has nothing to do with filenames.
works great when the the full path to file doesnt contain any
white spaces. But when the file is on desktop for example,
SciTE can not find the file and opens a blank document
(like new file is being created) and when I try to save
it says that could not save file
'C:\Documents and Settings\degz\Desktop\Settings\degz\Desktop\1.sql'
I have also put a shortcut in my SendTo folder pointing to
c:\windows\notepad.exe (I overwrite notepad.exe with scite.exe)
and this way it works ok with any file including spaces in it's
name.
In version 1.70 I patched win32\SciTEWin.cxx and fixed the
problem, I think it would be fixed in newer versions. Sorry
for not reporting this before if it is really a bug.
I don't understand your patch (didn't tried hard...) but I fear it would
break existing behaviour.
This is a very old problem, and actually a non-issue.
SciTE is able to open several files at once if given on the command line
separated by spaces.
If you enclose a name with spaces between double-quotes, the file will
be opened correctly. That's the normal behaviour of most programs able
to handle several files at once.
That's not the behaviour of Notepad which is brain-dead anyway... Since
it can open only one file at once, it takes everything on the command
line as the name of the file to open, hence it doesn't need
double-quotes (but it can remove them if it sees them).
The solution is not to break SciTE with some patch, but to change your
file associations. Example:
[HKEY_CLASSES_ROOT\SQLfile\shell\edit\command]
; On some old systems (Win95, WinNT4), using %1 may give the short path,
; using %L always gives the Long path...
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%L\""
No need to change it for SendTo, last time I checked, the program
launched this way receives the short path, so no spaces there. SciTE
converts this path to a full path internally.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest