ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Relative path for Editor

Open alabotski opened this issue 3 years ago • 8 comments

I have portable version Can I use relative path?

Something like in Total Commander Editor=%COMMANDER_PATH%....\SPSSuite\SyMenuSuite\Notepad++_(x64)_sps\Notepad++.exe "%1"

image

alabotski avatar Nov 23 '21 14:11 alabotski

It supports relative path, haven't you tried it out? Something like without .... %COMMANDER_PATH%....\SPSSuite\SyMenuSuite\Notepad++_(x64)_sps\Notepad++.exe

d2phap avatar Nov 24 '21 01:11 d2phap

If I understood correctly, the request is for a builtin "macro" like "%COMMANDER_PATH% [e.g. "%IG_PATH%"] to provide the "base" path. From which the relative path is applied. The value of "%IG_PATH%" being the folder containing the ImageGlass.exe file.

I'm not certain what the point would be, without the OP providing the use-case.

fire-eggs avatar Nov 24 '21 02:11 fire-eggs

Sorry for english Image Glass is located along this path d: \ SyMenu \ ProgramFiles \ SPSSuite \ SyMenuSuite \ ImageGlass_ (x64) _sps \

PicPick is located in a different path d: \ SyMenu \ ProgramFiles \ SPSSuite \ SyMenuSuite \ PicPick_sps \

I want PicPick to be called when editing

What's the "base" path for Image Glass?

image

alabotski avatar Nov 24 '21 19:11 alabotski

Understood, thank you for the follow up!

No, there isn't a built-in path variable. You can create one in your environment variables and use that.

For example, one of the pre-defined environment variables is %SystemRoot% and I successfully used it to point to mspaint:

%SystemRoot%\Windows32\mspaint.exe

fire-eggs avatar Nov 24 '21 23:11 fire-eggs

You can use .\ to get the Startup path of ImageGlass. Let's say your folder structure is like:

D:\Softwares
  |--MS Photos
  |  |--photos.exe
  |
  |--ImageGlass
  |  |--ImageGlass.exe
  |  |--igcmd.exe

To get the path of D:\Softwares\MS Photos\photo.exe, you can use:

  • ".\..\MS Photos\photos.exe", or
  • "..\MS Photos\photos.exe"

d2phap avatar Dec 08 '21 13:12 d2phap

image

alabotski avatar Dec 11 '21 08:12 alabotski

that's weird, make sure your relative path is correct. In my test, the folder structure is like this:

|--ig\
|  |--ImageGlass.exe
|--net6.0-windows\
|  |--HapplaBox.exe

image

image

image

d2phap avatar Dec 11 '21 15:12 d2phap

It doesn't work ... = ((

image image image

alabotski avatar Dec 16 '21 07:12 alabotski