Solved

Command Line argument to launch application with different "Start in" folder

Posted on 2009-05-08
4
3,378 Views
Last Modified: 2013-11-21
Hello,

I'm trying to publish a RemoteApp on TS 2008.  I was able to setup all my applications except for one which requires the application to start on a different folder library.  
Unfortunately, TS 2008 does not give me the option to specify a "Start in" folder on the application properties.  I'm assuming i will need to include additional command line arguments for the application to start successfully, but i cant seem to find the command line argument to do this.
I am attaching screen shots of the application shortcut properties and the RemoteApp properties from TS 2008.

Thanks...
AppPrpts.bmp
RmtAppPrpts.bmp
0
Comment
Question by:AIUsupport
  • 2
4 Comments
 
LVL 21

Expert Comment

by:oleggold
ID: 24337361
You can always use a bat or cmd file instaed of application that does following in first line:

set PATH = %PATH%;M:\PPSWIN\mstrres\ADVANCED

Open in new window

0
 
LVL 1

Author Comment

by:AIUsupport
ID: 24337546
I'm not sure if i understand correctly.  On the first image, "Target:" refers to my application and "Start in" is the working directory for the application which also holds user .ini files and config files for the application.  so i'm not sure where I should put this command.  Also, i have three libraries for this application or "Start in" directories.  
I've already tried using your command where it says "Always use the following command-line arguments:" on the remote application and failed.
Or do you mean i have to this command to like a login script.  If so i'm afraid it will not work because of the multiple libraries.

Thanks.
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 24338157
Try to run the following command instead of the original exe:

%Systemroot%\system32\cmd.exe /c "start "" /D"M:\ppswin\mstrres\ADVANCED" "M:\ppswin\DLL\AFEMNW32.exe""

Leave all the quotes exactly as they are; replace only library path as needed.
Alternatively, have you checked whether this program supports command line switches to tell it which ini file to use?
Start by running
AFEMNW32.exe /?
and if that doesn't yield a result, call the company and ask them.
0
 
LVL 1

Author Closing Comment

by:AIUsupport
ID: 31579504
Right on the money!!!  Thanks a lot your command worked.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SCCM Microsoft Report 2 97
Server Backup on 2016 Essentials Box 1 65
DHCP scope restore question Server 2003 to 2012R2 6 101
Measure time after installing Antivirus 8 59
Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question