Using Environment Variables for output folder?
Moderators: XnTriq, helmut, xnview, Dreamer
Using Environment Variables for output folder?
I want to make use of Windows' Environment Variables to help with portability.
Example:
Under the Output tab, I select "Folder", and in the textbox use: %USERPROFILE%\Desktop\Converted
I want it to replace %USERPROFILE% with whatever path is in that environment variable,
which for the above example may look like:
C:\Users\Kacey\Desktop\Converted
Right now it outputs folders exactly as the string put in the path. It literally creates a "%USERPROFILE%" folder.
using Version 1.92 - windows x64 (Jul 1 2021) - Libformat version 7.91
Example:
Under the Output tab, I select "Folder", and in the textbox use: %USERPROFILE%\Desktop\Converted
I want it to replace %USERPROFILE% with whatever path is in that environment variable,
which for the above example may look like:
C:\Users\Kacey\Desktop\Converted
Right now it outputs folders exactly as the string put in the path. It literally creates a "%USERPROFILE%" folder.
using Version 1.92 - windows x64 (Jul 1 2021) - Libformat version 7.91
Re: How to use Environment Variables?
Can you pls add it soon? It's super important for my usage.
https://stackoverflow.com/q/1902681/553663
https://stackoverflow.com/q/1902681/553663
Re: How to use Environment Variables?
Thank you SO much!
Re: How to use Environment Variables?
This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
Pierre.
Re: How to use Environment Variables?
Hi there!
I'm using XnViewMP 0.99.1
but this line that in xnview.ini doesn't work
OpenWith=%PortableDir%/GIMP/GIMPPortable.exe
Are there any tricks or did i do something wrong?
I'm using XnViewMP 0.99.1
but this line that in xnview.ini doesn't work
OpenWith=%PortableDir%/GIMP/GIMPPortable.exe
Are there any tricks or did i do something wrong?
Re: How to use Environment Variables?
I installed XnViewMP 1.01 (Windows, Terminal Server) and we are using the ini file in the program files folder.xnview wrote: ↑Thu Sep 16, 2021 12:19 pm This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
I've set the option to open XnViewMP to %USERPROFILE%\Pictures, but this doesn't work. It loads c:\program files\xnveiwmp instead.
I see that if I edit the path over the GUI, it is written into the ini file to the customPath entry. It isn't loaded within the program.
Is there any other syntax, I could set the path to each userprofile (or its pictures folder)?
Re: Using Environment Variables for output folder?
it's not the subject of topic, please create a new suggestion
Pierre.
Re: Using Environment Variables for output folder?
I do appologize, as initially I understood it may be the same.
Here is the new entry viewtopic.php?f=60&t=43728