Is there a universal variable for the path to a program

Is there a universal variable for the path to a program

I have noticed on several occasions that during the installation of a program downloaded from the internet that there was some sort of variable in the path to the installation folder I would just accept the default and the installation went OK.
I assumed that the variable was to accommodate the different OS's.
I have a small program that I created that I wanted to make available to the public. However, this program was created with the thought of using it myself. so I did not pay attention to the paths except to make it work. Now that I wish to make it available I should make the installation easier. The current path on my computer is "C:\users\bill\documents\FUND" and it branches from there. I assume that the variable in question is to replace the user. I hope I have made this clear enough that it can be understood.
I'm looking for a place that describes this variable and how I might be able to use it in my installation instructions.
Bill

My ComputerYou need to have JavaScript enabled so that you can use this ...

The program is written in Quattro Pro and uses QP macros as well as Perfectscript macros. Both of these are part of WordPerfect Office X7.
I am not very tech savvy so talk to me as if I am from an older generation . I am, in fact, 85.
Bill

My ComputerYou need to have JavaScript enabled so that you can use this ...

Path is a separate thing if from a Cmd prompt you type set it will show you the path this means windows etc will look in those folders for any file to run. You talking insulation folder how many files in your programme you can get free software which will package your software into an install and that will copy the files set folders etc. It depends on your software which is best for you

My ComputerYou need to have JavaScript enabled so that you can use this ...

This macro appears to be changing .wpd to .pdf and the .pdf is created in the place ?Path with name being the same just changing File_name.wpd to File_name.pdf. So it appears that you can use ?Path and this will define where your program is.

At a guess therefore if you replaced in your program anywhere you've explicitly typed C:\Users\bill\Documents\FUND\ with ?Path then it might work. If you do this and it works for you then it would work for anyone.

Hopefully someone how uses these programs will be able to help but if not it may be worth a try.

My ComputerYou need to have JavaScript enabled so that you can use this ...

Try literally typing that into the address bar in explorer. That should take you to
C:\users\bill\

Unless literally means something different than I understand the results are inconsistent. I just typed in $userprofile$ and the W10 explorer did a search of C: drive and when not found it searched the internet and returned this."Server not found

Firefox can't find the server at www.$userprofile$.com." I'll keep working at it.

Bill

My ComputerYou need to have JavaScript enabled so that you can use this ...

I had to restore my PC to factory settings because of a virus (maybe overkill, not sure) and reinstalled the Java JDK and editing the Environment Variable for Path.
First try gave me this:
68432
Second try gave me this (I can't remember how):...

Hi all,
I am trying to write a batch file in Windows 10 to output day of week (Monday, Tuesday etc) to variable do that I can do certain procedures on differnt days o the week and am having major problems.
If I type DATE /T at command prompt I...

When I create a shortcut to file in Program Files, the target path for that shortcut will be to Program Files (x86), even though the start in path will be correct. Furthermore, even though the target path is incorrect and no icon is displayed for...

This is pretty outrageous! I did not bargain for hours of my time to figure out the new, improved Windows 10. Not only did I lose admin status, half of my bookmarked favorites have disappeared.
I've seen the "take ownership..." articles, and...

About Us
Windows 10 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 10" and related materials are trademarks of Microsoft Corp.