Is it possible to start an application with parameters

Hello together,
I have written an application which is stored on a network. People from different computer start it to work with it. Now I have the problem, that I need some different configurations on each computer.
Is it possible to start a labview application with parameters, like: application.exe -User_1
The application should check the parametes and should switch to the needed configuration.
Thanks a lot and best regards,
Michael
Solved!
Go to Solution.

Hi Michael,
yes it is possible. First you have to activate the data transfer of your parameters. You can do it in the application builder. It is something like "send command line parameters to exe" which you have to activate. You will get the parameter in your program with the property "App.Args". It is an array with the exe name as the first element and one entry for each additional linked parameter.
Hope it helps.
Mike

Similar Messages

  • Applescript: How to start an application with parameters

    AppleScripters,
    I am sorry if I have posted this in the inappropriate forum, I saw none with a specific regard to AppleScript.
    Let us presume that we have a regular shell script which when initiated from the Terminal has code such as what follows hereupon:
    /Applications/SeaMonkey.app/Contents/MacOS/seamonkey -editor /Users/joebuffoon/myhomepage.htm
    In order to convert this to AppleScript I was told to use:
    activate application "Seamonkey"
    This works, but seems not to support the ability to either provision the "-editor" argument (such argument would impel Seamonkey to start in "composer mode"), nor does it seem to provision the allowance of supplying a file to open in "composer mode" as the aforementioned command line in my shell script would.
    Can I ask if anyone has any idea how I can do this in AppleScript?
    I am also interested to find a good book on Apple Scripting (preferably one available in PDF format as well, if possible).
    Thanks in advance,
    Stuart

    I saw none with a specific regard to AppleScript
    http://discussions.apple.com/forum.jspa?forumID=724

  • How to start an application with parameters

    AppleScripters,
    Let us presume that we have a regular shell script which when initiated from the Terminal has code such as what follows hereupon:
    /Applications/SeaMonkey.app/Contents/MacOS/seamonkey -editor /Users/joebuffoon/myhomepage.htm
    In order to convert this to AppleScript I was told by an associate to use:
    activate application "Seamonkey"
    This works, but seems not to support the ability to either provision the "-editor" argument (such argument would impel Seamonkey to start in "composer mode"), nor does it seem to provision the allowance of supplying a file to open in "composer mode" as the aforementioned command line in my shell script would.
    Thus, my query is if anyone has any idea how I can do this in AppleScript?
    I am also interested to find a good book on Apple Scripting (preferably one available in PDF format as well, if possible).
    Thanks in advance,
    Stuart

    I've had success with the script below, tested using SeaMonkey version 2.0b1 and Mac OS 10.4.11. It may or may not work with earlier versions of SeaMonkey, however, as the new beta version features UI changes.
    No browser window will open as long as SeaMonkey > Preferences > Appearance is set to open Composer exclusively at startup.
    Be advised that the script is meant to run slowly and might appear to be hanging when such is not the case. Adjusting delay times would be key if the script does fail at any point, however. Good luck.
    +Copy the block of code below and paste it into your AppleScript Script Editor:+
    *tell application "SeaMonkey" to activate*
    *delay 4 -- four-second delay; increase if necessary*
    *tell application "System Events"*
    *tell process "SeaMonkey"*
    *if not (exists window "untitled - Composer") then*
    *key code 21 using command down -- makes new window if necessary ("Command + 4")*
    *end if*
    *delay 2 -- increase if necessary*
    *keystroke "o" using command down -- "Open File…"*
    *delay 2 -- increase if necessary*
    *keystroke tab using shift down*
    *keystroke tab using shift down -- brings focus to text field for file search*
    *keystroke "File Name" -- enters file name (you must replace text within quotes with actual file name)*
    *key code 47 -- enters "dot"*
    *keystroke "html" -- enters extension*
    *delay 10 -- ten-second delay could be MININUM; increase if necessary*
    *keystroke tab*
    *keystroke tab -- brings focus to scroll area*
    *key code 125 -- presses down arrow to highlight specified file*
    *keystroke return -- presses "Open"*
    *end tell*
    *end tell*

  • Starting AIR application with parameters

    Hi all
    Is it possible to pass the parameters to the AIR application?
    Something like:
    myapp.air param1 param2
    If yes, how can I get those parameters inside the
    application?

    I actually want to post this link:
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=4&postI d=8003
    -ted

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • Examples of 'calling a web dynpro application with parameters'

    Hi!!
    I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
    Is there some example where these terms are seen.
    Thanks in advance.

    Hi Ana,
    a window inbound plug can have parameters.
    These parameters are automatically fished out of the URL by the framework.
    So your inbound plug handler method has easy access to the parameters.
    URL
    http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz&param2=abc
    The application is configured to call an inbound interface(window) and plug.
    The plug can be declared with parameters.
    Double click on window inbound plug and add your parameters.
    The parameters are made available by framework if present in Launch URL.
    You can also call an application that has parameters  directly entered on the parameters tab.
    ie Parameters can be part of the application launch.
    regards
    Phil

  • How can I start any application with buttons

    Hello, I want to start any kind of applications with Buttons. I want to make me a GUI with buttons and with one button I want to start Outlook, but I dont know how this will work!
    THX for your help

    Runtime class exec methods
    If your Outlook executable is in different path ... import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test2 extends JFrame implements ActionListener
       public Test2()
          super("Test");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(300, 200);
          JButton b = new JButton("Outlook Express");
          b.addActionListener(this);
          getContentPane().setLayout(new FlowLayout());
          getContentPane().add(b);
       public void actionPerformed(ActionEvent e)
          try{
             Runtime runTime = Runtime.getRuntime();
             Process proc = runTime.exec
                         ("C:\\Program Files\\Outlook Express\\msimn.exe");
             proc.waitFor();
          }catch(IOException ioe){System.out.println("Wham");}
          catch(InterruptedException ie){System.out.println("Bop");}
       public static void main(String[] args)
          new Test2().setVisible(true);
    }

  • POSSIBLE TO SELECT SPECIFIC APPLICATIONS WITH MIGRATION ASSISTANT?

    Is it possible to select specific applications to transfer from a Powerbook to an iMac? So far I've only found the given option, which imports the entire folder.
    Thanks for helping.

    http://discussions.apple.com/thread.jspa?threadID=1876275&tstart=0
    That question was answered not more than an hour ago...

  • Start external application with oracle job

    I'm trying to start external program with oracle job.
    Here is an example (I used SYS as SYSDBA):
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'my_job',
    job_type => 'executable',
    job_action => 'C:/WINDOWS/system32/cmd.exe',
    enabled => true,
    auto_drop => false );
    END;
    But job STATE comes FAILED.
    How should I do this?
    Result was not better when I used
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM (
    program_name => 'my_prg',
    program_type => 'EXECUTABLE',
    program_action => 'C:/WINDOWS/system32/cmd.exe',
    enabled=>TRUE);
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'my_job',
    program_name => 'my_prg',
    enabled => TRUE,
    auto_drop => false );
    END;
    Edited by: user458393 on Feb 16, 2010 1:55 AM

    Take a look at this thread: Running a Windows BAT file using DBMS_SCHEDULER
    C.

  • Start 6i application with runtime fully maximized

    Hi all,
    I want to start my application (Client/Server) fully maximized.
    How can I do this?
    Thanks
    Silke

    Hi all
    I've found the solution! :-)

  • [KDM] Cannot start gui application with sudo

    Hi,
    After i had upgraded to kde 4.5, there was a new problem. When i want to start any gui program with sudo (e.g. sudo kwrite) i see that error:
    [simas@myhost ~]$ sudo kwrite
    No protocol specified
    kwrite: cannot connect to X server :0.0
    [simas@myhost ~]$
    Starting apps like nano works fine. I also discovered that when i use gdm instead of kdm, and boot to same kde desktop, i can start gui apps with sudo fine. when i use kdm no matter if im in gnome or kde starting gui apps from terminal with sudo just doesnt work.
    Anyone has any ideas? im starting desktop managers with inittab method.
    Last edited by syms (2010-10-11 11:49:24)

    graysky wrote:hmm... with gnome I use gksu so I believe you need the kde version of that... ksudo or kdsu I can't remember.
    well, using kdesu works fine, but i still prefer sudo. in fact everything worked fine in kde 4.4 and gdm.

  • Is it possible in jsf? Action with parameters????

    I have a NavigationItem, a object of myfaces.....
    And when is clicked it, I want to create a new pane, based on the navigationItem clicked, obviuosly,
    How I can submit a action with parameters???
    Is it possible?
    thanks all !

    I will try to explain better.
    I create menus dynammicaly....
    and this menus has NavigationMenuItems, all componentes of myFaces
    The navigationMenuItem is inherited of SelectItem.....
    and creating it dynamically I need to put a action, and the backing bean has a method that return a string , but the value returned is always null, and I will to know How things I will do depending the parameters (like request parameteres) are passed through the action...
    but I do not know how to set the action dynamically, when the method setAction expect a string and not a MethodBinding.....
    And how I will to know after, what navigationMenuItem was clicked ??
    I don't know if are answers to this questions, I'm not sure about the limitations of web development and jsf, but I must to do it...
    thanks

  • Is is possible to start the Appserver with DOS 'runas' command

    I can do this with tomacat:
    runas /user:myuser /pass:mypassword "location of tomcat"
    is this possible with SUN appserver that comes with the STUDIO for
    both the modes:
    1)Normal Start
    2)Debug

    Not normal but you will need to feel the trackpad actually click, at the login (press hard left bottom corner).  Tap to click isn't available until you log and it can read your preferences.

  • Starting SMA runbook with parameteres using powershell via REST

    Hello!
    I am trying to start SMA runbook using powershell via REST. I can do that normally for simple runbook without parameters using REST web service (for example
    https://my.server.com:9090/00000000-0000-0000-0000-000000000000/Runbooks%28guid%27bd55d199-c261-4c50-9cef-a83d5c976ce2%27%29/Start
    However, I do not understand how to start a runbook which has parameters? For example I have 2 runbooks - 1 with single parameter and second with 3 parameters, how can I pass parameters value? I would really appreciate any help!

    Hello
    Does this Link answer your question?
    http://msdn.microsoft.com/en-us/library/hh921685.aspx
    Thanks
    Josh
    Code from that URL in case the link ever dies:
    # Details of the runbook we are going to run
    $rbid = "00000000-0000-0000-00000000000000001"
    $rbParameters = @{"00000000-0000-0000-00000000000000002" = "This is the value for Param1.";" 00000000-0000-0000-00000000000000003" = " This is the value for Param2."}
    # Create the request object
    $request = [System.Net.HttpWebRequest]::Create("http:// server01.contoso.com:81/Orchestrator2012/Orchestrator.svc/Jobs")
    # Set the credentials to default or prompt for credentials
    $request.UseDefaultCredentials = $true
    # $request.Credentials = Get-Credential
    # Build the request header
    $request.Method = "POST"
    $request.UserAgent = "Microsoft ADO.NET Data Services"
    $request.Accept = "application/atom+xml,application/xml"
    $request.ContentType = "application/atom+xml"
    $request.KeepAlive = $true
    $request.Headers.Add("Accept-Encoding","identity")
    $request.Headers.Add("Accept-Language","en-US")
    $request.Headers.Add("DataServiceVersion","1.0;NetFx")
    $request.Headers.Add("MaxDataServiceVersion","2.0;NetFx")
    $request.Headers.Add("Pragma","no-cache")
    # If runbook servers are specified, format the string
    $rbServerString = ""
    if (-not [string]::IsNullOrEmpty($RunbookServers)) {
    $rbServerString = -join ("<d:RunbookServers>",$RunbookServers,"</d:RunbookServers>")
    # Format the Runbook parameters, if any
    $rbParamString = ""
    if ($rbParameters -ne $null) {
    # Format the param string from the Parameters hashtable
    $rbParamString = "<d:Parameters><![CDATA[<Data>"
    foreach ($p in $rbParameters.GetEnumerator())
    #$rbParamString = -join ($rbParamString,"&lt;Parameter&gt;&lt;ID&gt;{",$p.key,"}&lt;/ID&gt;&lt;Value&gt;",$p.value,"&lt;/Value&gt;&lt;/Parameter&gt;")
    $rbParamString = -join ($rbParamString,"<Parameter><ID>{",$p.key,"}</ID><Value>",$p.value,"</Value></Parameter>")
    $rbParamString += "</Data>]]></d:Parameters>"
    # Build the request body
    $requestBody = @"
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
    <content type="application/xml">
    <m:properties>
    <d:RunbookId m:type="Edm.Guid">$rbid</d:RunbookId>
    $rbserverstring
    $rbparamstring
    </m:properties>
    </content>
    </entry>
    # Create a request stream from the request
    $requestStream = new-object System.IO.StreamWriter $Request.GetRequestStream()
    # Sends the request to the service
    $requestStream.Write($RequestBody)
    $requestStream.Flush()
    $requestStream.Close()
    # Get the response from the request
    [System.Net.HttpWebResponse] $response = [System.Net.HttpWebResponse] $Request.GetResponse()
    # Write the HttpWebResponse to String
    $responseStream = $Response.GetResponseStream()
    $readStream = new-object System.IO.StreamReader $responseStream
    $responseString = $readStream.ReadToEnd()
    # Close the streams
    $readStream.Close()
    $responseStream.Close()
    # Get the ID of the resulting job
    if ($response.StatusCode -eq 'Created')
    $xmlDoc = [xml]$responseString
    $jobId = $xmlDoc.entry.content.properties.Id.InnerText
    Write-Host "Successfully started runbook. Job ID: " $jobId
    else
    Write-Host "Could not start runbook. Status: " $response.StatusCode

  • Start and ADF Application with a non-View Task

    I would like my application to start with a non-View task from within Unbounded Task Flow.
    For example, I would like a single "Task Flow Call" in the Unbounded Task Flow which will call the first Bounded Task Flow. The first BTF will expose the main application page. The main application page will contain a dynamic region to handle all other bounded task flows.
    Is there a better task type to use than the Task Flow Call?
    Does the first task in an unbounded task flow need to be a view task?
    If so, is possible to simply use this page to redirect to a non-view task (such as a Task Flow Call)?
    Any ideas on the best approach for this? The point is that I do not want to start the application with a view task.
    Thanks,
    Vince

    Hi,
    you can't start with a non-view acticvity in an unbounded task flow. In your case I suggest to use a bounded task flow that you enable for browser access (property setting) and have it using JSPX pages. You don't need to start with a view in the unbounded task flow to achieve what you want
    Frank

Maybe you are looking for

  • Bank statement Nr in journal entry and Payments

    In Notenumber 1374872 (SP 01/PL7) a change has been implemented that the number of the payment run is copied to the remarks of the payment and the journal entry. I think it will be good idea to do the same for the number of the bankstatement in bank

  • MASS reversal of teco

    Dear Sapians, Please suggest me if we can do MASS REVOKE OF TECO. Thanks and regards Gvrr

  • How do I increase print size which changes suddenly from readable to too samll to read

    While writing an E-mail, the screen changes suddenly from full screen to a small representation which I can hardly read. Why does this happen and how can I reverse the screen to where it started

  • Firefox Mobile 20.0.1 opening all downloads in zArchiver

    It seems that whenever I download anything though Firefox 20.0.1 on my phone it opens it up automatically in the zArchiver app. I have no defaults set for either app, and it only happens with Firefox, no other browses seem to do this. Is there a poss

  • Import image and set length

    hi, am a long time Premiere and AE user. Currently just testing the trial version of FCP X on a new project. also interested in Compressors distributed rendering. Q1: in the intro of a project I am using a clip where I want to blend in the brand logo