Using Environment Variables for output folder?
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 11
- Joined: Fri Nov 13, 2020 12:49 am
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
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 11
- Joined: Fri Nov 13, 2020 12:49 am
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
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 11
- Joined: Fri Nov 13, 2020 12:49 am
Re: How to use Environment Variables?
Thank you SO much!
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
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.
-
- Posts: 3
- Joined: Wed Aug 28, 2013 4:54 am
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?
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 6
- Joined: Wed Aug 17, 2022 2:26 pm
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)?
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 6
- Joined: Wed Aug 17, 2022 2:26 pm
-
- Author of XnView
- Posts: 44895
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using Environment Variables for output folder?
it's not the subject of topic, please create a new suggestion
Pierre.
-
- Posts: 6
- Joined: Wed Aug 17, 2022 2:26 pm
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