Solved

Call a File from Batch/Shortcut

Posted on 2009-04-02
7
1,212 Views
Last Modified: 2012-05-06
There are two desktop applications that I am trying to run at the same time via a desktop shortcut or a batch file but one of the applications needs to call an XML file.  We are trying to prevent our users from having to navigate to the location of the XML file (network or local) each time they run the application.

App1:  Onbase client   (Hyland software)
App2:  AppEnabler (this needs to call the XML file)   (Hyland software)  

Running AppEnabler via the command prompt/batch file works just fine, see below.  It calls and opens the XML file automatically.   The app then stays in the system tray.  But I am trying to combine this with the onbase client.

(THIS WORKS) START "" "C:\Program Files\Hyland\Application Enabler\AEClient.exe" "\\Path\to\XML\file\AE.xml"

The Onbase client can be launched with a -AE switch (appenabler) appended at the end of the desktop shortcut ("c:\path to client\onbase.exe" -AE).  This will launch appenabler but prompts the users to the XML file each time.  I've tried  "c:\path to client\onbase.exe" -AE "path-to-XML file" but does not work.  

Essentially, I want the users to be able to launch the onbase client, appenable, and calls the XML automatically - all in one shot via a shortcut or a batch file.

Thank you.


0
Comment
Question by:isstechy
7 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 250 total points
ID: 24054532
Well... you could easily make a batch file with two START commands in called "RunOnbase.cmd" for instance and send the shortcut there OR you could do a single shortcut running

cmd /c START "" "C:\Program Files\Hyland\Application Enabler\AEClient.exe" "\\Path\to\XML\file\AE.xml" & START "" "c:\path to client\onbase.exe"

all on one line

e.g. I just did this as a test shortcut:

%windir%\system32\cmd.exe /c START "" excel & START "" winword

which fires up word and excel at th same time.

Steve
0
 
LVL 6

Expert Comment

by:Justin_W_Chandler
ID: 24054761
This is not a problem of batch scripting, but a problem of knowing the command execution syntax for APPENABLER.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 24055210
Yeap, nothing you can do besides getting the correct syntax for the Hyland software.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Closing Comment

by:isstechy
ID: 31565999
Thanks for the syntax.  It worked for us.  Appreciate your expert suggestion.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 24121744
glad it helped

steve
0
 
LVL 6

Expert Comment

by:Justin_W_Chandler
ID: 24129641
This was not a valid solution to the problem. He didn't like the real answer [which was that if his application is not opening the file submitted as a command line argument, it won't work], so he just awarded points to you.

J
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 24131455
I read it differently... he said if the app enabler was run with commandline then it  worked but needed to be run from the same shortcut.  Another possible solution may be (and of course also depends on the app) is changing the working directory to be the path of the enabler files and then it may be looking in the pwd for it.

He said if run manualy then it works so will work identically to that from a batch file suggested for instance...

Anyway neither here nor there, though always good to get feedback from h person asking.

Steve
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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