Batch file start by doubleclick uses wrong relative path

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

User avatar
flitz
New Member
Posts: 2
Joined: 2016 Jan 03, 08:16

Batch file start by doubleclick uses wrong relative path

Post by flitz »

Platform: Windows10-64
xlporer²: Ultimate x64
View Panel right: "\folderA\folderB\"

Assumed this folder structure

Code: Select all

\folderA
  \folderB
    filexy99.txt
    archup.bat
and the content of the file "archup.bat"

Code: Select all

xcopy .\filexy99.txt ..\filexy99arch.txt /Y
pause
it is expected that a doubleclick on "\folderA\folderB\archup.bat" would start the batchfile in the path "\folderA\folderB\" so that the relative path ".\" would direct to "folderB" and "..\" to "folderA".

Unfortunately the xplorer² installation path is used so that the relatve path ".\" converts to "d:\xPlorer64ult"

It is known that the addressbar command "$archup.bat" uses the correct relative paths, but for productivity reasons a doubleclick on a file should result in the folder of the panel.
User avatar
nikos
Site Admin
Site Admin
Posts: 16402
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Batch file start by doubleclick uses wrong relative path

Post by nikos »

please use TOOLS> OPTIONS menu and from Advanced property page CLEAR the option "don't lock browsed folder". This is a relic that I should really remove!
User avatar
flitz
New Member
Posts: 2
Joined: 2016 Jan 03, 08:16

Re: Batch file start by doubleclick uses wrong relative path

Post by flitz »

Worked!

Thanks for your quick support.