shell based on users install?

smlrwd

New member
Local time
Today, 00:48
Joined
Oct 7, 2010
Messages
8
I am trying to have access call a program that is installed in the users directory. It is required that every user installs the program seperately (license).

This is what it looks like now.
Code:
Dim Apath As String
Dim retVal1
     Apath = "  " & strA
 
      retVal1 = Shell ("C:\Users\joe.blow\AppData\Local\Company\Software\the.exe", 1)
      Sleep 400

But how would I make it so that instead of it looking for joe blow's exe every time it looked for the current user's exe.

Any help would be appreciated.
 
Re: shell based on users isntall?

Thanks for the reference but I was lost with it.

This ended up working.

Shell (Environ("USERPROFILE") & "\AppData\Local\...", 1)
 

Users who are viewing this thread

Back
Top Bottom