Solved

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

Posted on 2009-05-08
4
3,172 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 82

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Remote Desktop Protocol or RDP has become an essential tool in many offices. This article will show you how to set up an external IP to point directly to an RDP session. There are many reasons why this is beneficial but perhaps the top reason is con…
Know what services you can and cannot, should and should not combine on your server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now