Can I use windows Envoironment Variables in .dop files?

Windows lets you define System and user Envoironment Variables. I would like to use these variables in .dop files, found in:

C:\Users\...\AppData\Roaming\GPSoftware\Directory Opus\Buttons\Applications2.dop

If I can do this, can I get an example in how to do it correctly?

<function type="normal">
    <instruction>cd C:\Users\User1\Folder1\Folder2</instruction>
    <instruction>C:\Users\User1\Folder1\Folder2\KillAll_High.ahk</instruction>
</function>

Like above example, on both my systems the above two paths are identical accept for the user names.

I need to do this becuase I am using Opus on main PC and on portable laptop on the go. Its getting frustrating with managing paths in toolbars and other .xml Opus config files.

You can use them in Opus the same way you use them in anything else, e.g. %USERPROFILE% will expand to your user profile folder.

You may also want to look at Opus folder aliases.

1 Like

Brillian Jon, Thanks!