Solved

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

Posted on 2009-05-08
4
3,445 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 85

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

1. Boot PC and press F10, select storage options and change the compatibility from “AHCI” to “IDE”, save and exit 2. Boot PC and press F12 3. Upon PXE display of searching for DHCP server, press Pause break to obtain MAC address 3. Open Configu…
The question has been asked on multiple occasions as to how best to do printing in a remote desktop or terminal services environment.   It seems that this particular question has plagued several people and most especially as Terminal Services, as…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

734 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