Link to home
Start Free TrialLog in
Avatar of mlagrange
mlagrangeFlag for United States of America

asked on

"%username%" resolves in MetaFrame, but not in XenApp

Hello - trying to set up a MS Access application in XenApp using the same command line that worked in MetaFrame, but it's not resolving the "%username%" parameter.

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" C:\RPA&username%\RpaFront.mdb
would resolve to C:\RPAroger\RpaFront.mdb"

Access opens, but then can't find "C:\RPA&username%\RpaFront.mdb"

Was there some change between MetaFrame and XenApp ?

Thanks
Avatar of oBdA
oBdA

Maybe stating the obvious here, but username is not enclosed in "%". YOu're using an ampersand and a percent sign.
Avatar of mlagrange

ASKER

blast... that was a typo in my question. Sorry; the actual command line is:
     "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" C:\RPA%username%\RpaFront.mdb
SOLUTION
Avatar of Mark Galvin
Mark Galvin
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Does the user name contain any characters outside of A-Z and 0-9? If so, add double quotes around the argument: "C:\RPA%username%\RpaFront.mdb"
Or does help publishing it like that help?
cmd.exe /c start "Starting Access ..." "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\RPA%username%\RpaFront.mdb"

Open in new window

smh...  
 "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" C:\RPA\%username%\RpaFront.mdb

Thanks, oBdA
Yes, it was the *intent* of oBdA's solution, but without my typo (let's see if I can finally get it right :-/  

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\RPA\%username%\RpaFront.mdb"
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you both for your responses.