[Geany-Users] Problem open files using relative paths (windows)

Nick Sartor nick at xxxxx
Wed Oct 16 17:34:33 UTC 2013


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20131016/d59af06a/attachment.html>


More information about the Users mailing list