On 13-10-16 10:34 AM, Nick Sartor wrote:
Hi all. I'm having a bit of an issue launching geany from the command line in windows. The issue is when I launch Geany from 1 dir to open a file in another dir. For example, if I'm in c:\foo\bar\some\path\ and I want to open file c:\foo\bar\file.txt I would type:
"c:\Program Files (x86)\Geany\bin\Geany.exe" ....\file.txt
it creates a new file instead c:\file.txt for some reason. "c:\Program Files (x86)\Geany\bin\Geany.exe" c:\foo\bar\file.txt works fine.
Here's the batch file I use for notepad++ that I modified for geany, but it gives the same issue:
@echo off REM calls geany with file to open from command line
if "%~1"=="" ( start /I /B "" "C:\Program Files (x86)\geany\bin\geany.exe" ) ELSE ( start /I /B "" """C:\Program Files (x86)\Geany\bin\geany.exe" %1 )
any one have any ideas?
thanks!
Can you paste what it says in "Help->Document Messages" after trying to open a file like that. Also try unchecking "Preferences->New files->Open new documents from the command line" and see if it freaks out and gives any additional info that might be interesting.
There's some kind of "custom" code that tries to deal with handling filenames, probably either this code gets it wrong or it can't even detect the real file when checking for it and so opens a new file instead (related to above option).
Cheers, Matthew Brush