Page 1 of 1
Start external programm: Working dir
Posted: Wed Jan 09, 2013 4:17 pm
by Peter2
I created a button which starts an external exe like x:\software\fun\test.exe.
But the "working dir / start in folder / execute in ..." can not be defined, and this is why "test.exe" has problems to find supporting files. Is there a way to define "working dir"?
Peter
Re: Start external programm: Working dir
Posted: Fri Jan 11, 2013 10:41 am
by xnview
not currenlty

perhaps i must use the pathname of xnview as current directory?
Re: Start external programm: Working dir
Posted: Fri Jan 11, 2013 11:06 am
by Peter2
xnview wrote:... perhaps i must use the pathname of xnview as current directory?
??
For me, I do not understand in detail the Windows option "working dir" and so on, but here is my situation:
- I have d:\software\main.exe.
- (Normally) I have also d:\software\sub.exe.
Main.exe has the code: "if find sub.exe then ...."; and I thought it searches always in the same folder. Doubleclick on main.exe works fine, but starting main.exe from a button in XnView brings "sub.exe not found". It seems that main.exe runs in some temp-location or somewhere else ...
Peter
Re: Start external programm: Working dir
Posted: Mon Jan 14, 2013 7:21 am
by xnview
Ok, so i must use app dir as current dir
Re: Start external programm: Working dir
Posted: Mon Jan 14, 2013 8:52 am
by Peter2
xnview wrote:Ok, so i must use app dir as current dir
Better to add an extra option where the user can define the working dir (with app-dir as default).
Peter