RemoteApp - Batch file launching program with .ini file
-
Monday, February 04, 2013 2:40 PM
Working on a batch file to launch a program with an .ini file. The program shortcut has a target: C:\(path).exe then a parameter. That is C:\(path).ini AAA00 It also has a Start In location. My problem is that the batch file will run but when it gets to AAA00 it fails and says cannot find AAA00. This is how the program is setup and each user in the program requires a unique id. AAA00 picks up the unique id with AAA(00).
My batch file example:
@ECHO OFF
cd /d %HOMEPATH%\(path)
Start /d C:\(path).exe "%HOMEPATH%\(path).ini" AAA00Basically the parameter AAA00 does not get picked up with "%HOMEPATH%\(path).ini"
I have tried "%HOMEPATH%\(path).ini AAA00" but it fails.
Reason: Trying to get this program to run over RemoteApp.
All Replies
-
Monday, February 04, 2013 10:10 PM
Hello,
I assume you have the per user ini stored on the user home drive. Therefore change the path to the ini to %homeshare%%homepath%folder\xxx.ini.
Next I would verify that the application is not setting the path to the ini file in registry:
HKLM\Software\Appname\ or HKCU\Software\Appname\
regards Robert Maijen
- Marked As Answer by Clarence ZhangModerator Monday, February 11, 2013 2:01 AM
-
Monday, February 04, 2013 10:14 PM
There is a funny thing about start command and quotes, see:
http://stackoverflow.com/questions/154075/using-the-dos-start-command-with-parameters-passed-to-the-started-program
Your line should probably go like this (with empty quotes on the 1st place in the start command args):
Start "" /d C:\(path) program.exe "%HOMEPATH%\(path).ini" AAA00
Regards,
Pawel Mazurkiewicz
- Marked As Answer by Clarence ZhangModerator Monday, February 11, 2013 2:01 AM

