How to start a compiled exe with a parameter like -n

Is there an possibility to start a compiled exe with a paramter like -n ?I searched the forum but only found sth. about dlls and so on.I just want to say, when the programm is started for example as Myprogram.exe -n that the program creates a new file or sth like this in which it writes current data. I never have done that before and do not know how to realize that operation.
Thanks for help
kind regards

Hello
This link explains how to pass command line parameters to app.exe.
link
Hope it helps
Alipio
"Qod natura non dat, Salmantica non praestat"

Similar Messages

  • How could I draw a graph with a parameter like resistance on the x-axis?

    I want to run an analysis that plots a voltage as a function of resistance. The parameter sweeps just make separate lines on the graph corresponding to the different resistances but they are still functions of time. Also If I could get gain as a function of resistance that would be great too(in ac).

    For this case, you need to make use of the Export to Excel function (or Mathcad or LabVIEW). Export all the traces and you will have a spreasheet in excel that in the column header has the resistance, and then you will have two columns beneath it, one for time and one for voltage. In this way, you could then select one row, that is... one specific point in time, and graph Voltage as a function of resistance.
    Nestor
    National Instruments

  • How to start Premiere Elements 11 with welcome screen

    How to start Premiere Elements 11 with welcome screen

    thank you
    Date: Sat, 20 Jul 2013 06:02:36 -0700
    From: [email protected]
    To: [email protected]
    Subject: How to start Premiere Elements 11 with welcome screen
        Re: How to start Premiere Elements 11 with welcome screen
        created by Steve Grisetti in Premiere Elements - View the full discussion
    Are you saying that you want to see the menu screen when you launch the program?
    If so, go to the Help menu and select Welcome Screen. When  the Welcome Screen launches, click on the gear in the upper right corner and set Always Start On to Welcome Screen.
    Or are you asking how to start the program from the Welcome Screen?
    If so, you may want to check out my free 8 part Basic Training for Premiere Elements tutorials.
    http://forums.adobe.com/thread/537685?tstart=0
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5522867#5522867
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5522867#5522867
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5522867#5522867. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to call a Store Procedure with IN PARAMETER

    Hi, im new using Oracle 10G with Oracle SQL Developer, my cuestion is how to call a Store Procedure with IN PARAMETER, I tried the following without results
    SELECT * FROM procedure_name(parameter);
    PROCEDURE procedure_name(parameter);
    EXEC procedure_name(parameter);
    CALL procedure_name(parameter);
    Please help me....

    Hi,
    As Beijing said,
    EXEC procedure_name(parameter);
    CALL procedure_name(parameter);work for me.
    So does
    BEGIN
        procedure_name(parameter);
    END;Can you be more specific about what you're doing? That is, are you testing it in SQL Developer? Where are you entering the commands? Where are you looking for output? Do you get error messages? Does anything else (like "SELECT SYSDATE FROM dual;") work?

  • How to turn a stored procedure with a parameter into table function?

    Could someone please let me know how to turn the SP below into table-value function? I want to be able to run this function by using SELECT statements with the parameter. Thanks
    CREATE
    PROCEDURE
    [dbo].[Transformation](@year
    varchar(4))
    AS
    BEGIN
    Declare@Q1
    Varchar(100)=
    '['+@year+'Q1'+']'
    Declare@Q2
    Varchar(100)=
    '['+@year+'Q2'+']'
    Declare@Q3
    Varchar(100)=
    '['+@year+'Q3'+']'
    Declare@Q4
    Varchar(100)=
    '['+@year+'Q4'+']'
    Declare@StrQuery
    Varchar(1000)
    Set@StrQuery
    = 'Select Date, Job, [Cost Elements],Units,
    '+@Q1+'+'+'+'+@Q2+'+'+'+'+@Q3+'+'+'+'+@Q4+'
    as [Amounts], ''Update'' as [Description]  From Export with (nolock)'
    --Print @StrQuery
    Exec(@StrQuery)
    END

    You cannot use dynamic SQL in user-defined functions.
    Work around (not an ideal solution, it has problems): OPENQUERY.
    Blog:  http://www.sqlusa.com/bestpractices2005/selectfromsproc/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to start managed server automatically with admin server.

    Hello all, I have an admin server anda managed server configured in a machine. I want to start the managed server as soon as I run the script to start the admin server and node manager in the unix pc.
    The admin and managed server are added to the same machine and the machine is connected with the node manager.
    Please let me know what else need to be configured or make change in the script.

    hello user12003735..
    sorry for not mentioning the wlst tool path.
    You can start the wlst(WEBLOGIC SCRIPTING TOOL) in two ways and run your jython scripts.
    PROCEDURE 1) Directly invoking wlst :
    You will find the wlst.cmd(wlst.sh in case of UNIX enviroments) in $WL_HOME/common/bin. From command line do this
    wlst <JYTHON SCRIPT>
    ./wlst.sh <JYTHON SCRIPT> [UNIX]
    PROCEDURE 2) From Command Line :
    There is a jar file in $WL_HOME/server/lib named weblogic.jar. It conatins a class file named WLST.cmd in the package weblogic[Try jd-gui.exe java decompiler to look inside the jarfile. to get it google it]. This jar file actually makes the wlst tool running. If you try to look inside wlst.cmd or wlst.sh you will find that the scripts are internally adding this jar file in CLASSPATH and calling it:
    eval '"${JAVA_HOME}/bin/java"' ${JVM_ARGS} weblogic.WLST '"$@"' [wlst.sh]
    "%JAVA_HOME%\bin\java" %JVM_ARGS% weblogic.WLST %* [wslt.cmd]
    So you can do exactly what the scripts doing from command line. do this :
    {A} $WL_HOME/server/bin/setWLSEnv.sh [or setWLSEnv.cmd] <---------------------------------------- SETS THE CLASSPATH
    You will see a lot of jar files added to your classpath and this step is exactly same when you run the wlst from the scripts in PROCEDURE 1.
    java weblogic.WLST <JYTHON SCRIPT>
    One thing you can also use the weblogic jar file to monitor any weblogic server[You have to first set the env with setWLSEnv.cmd or .sh]:
    java weblogic.Admin -url t3://<IP>:<PORT> -username <USERNAME> -password <PASSWORD> GETSTATE <SERVERNAME> [GETTING THE STATE]
    java weblogic.Admin -url t3://<IP>:<PORT> -username <USERNAME> -password <PASSWORD> FORCESHUTDOWN <SERVERNAME> [FORCIBLY SHUTTING DOWN SERVERS]
    You can do many other things with weblogic.jar not just the previous two. Refer to oracle manuals.

  • Dis51usr.exe: How to run a multisheet report with different parameter?

    Hi,
    I have a report ( say 1.dis) with 2 sheets ( X and Y ). X has the parameter
    District and Y has the parameter Division. While I saved the report, the sheet X was opened . ( That means I run the report X from Desktop and save the report )
    Now I execute the following command to run the X .
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "X" /parameter "District"
    "ABC" /export xls C:\Test\DIS_REPORT_OUTPUT_X.xls /BATCH
    It is successfully run and gives the output file.
    Now I execute the following command to run the Y.
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "Y" /parameter "Division"
    "DEF" /export xls C:\Test\DIS_REPORT_OUTPUT_Y.xls /BATCH
    It is showing the error
    District: Unresolved parameter.
    If I save the report while the sheet Y is opened , then the second command is running fine,
    but the first one is showing the error
    Division: Unresolved parameter.
    It looks the command can not move to other sheet . How can I resolve it ?
    Please help.

    Hi
    Just had an idea. Try removing the double quotes from around the parameter value. Even though it is a string you don't need to provide quotes in the command line. Therefore try again like this:
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "X" /parameter "District"
    ABC /export xls C:\Test\DIS_REPORT_OUTPUT_X.xls /BATCH
    and this:
    C:\Dis10gDesktop\bin\dis51usr.exe /connect <user id>/<password>@connectstring /apps_user
    /apps_responsibility "test_Resp" /open "C:\Test\1.DIS" /sheet "Y" /parameter "Division"
    DEF /export xls C:\Test\DIS_REPORT_OUTPUT_Y.xls /BATCH
    You also may not need the double quotes around the sheet and parameter names. Typically these are only used when there is a space in the name
    As an FYI, if you need to put quotes around a parameter value try using single quotes instead of double quotes and as a tip if you are passing multiple values to a parameter they should be passed with a comma between them and no space either before or after the comma.
    Do you have a copy of my Oracle Press book called Oracle Discoverer 10g Handbook? If so, please take a look at pages 503 to 509. If you don't have it I'd strongly recommend doing so as it contains over 1,000 pages of information. You can get it at amazon and can find out more about it on my website here: http://ascbi.com/10g-handbook.htm
    Best wishes
    Michael
    URL: http://ascbi.com
    Blog: http://learndiscoverer.blogspot.com

  • How to Launch a "setup.exe" with LabVIEW app? No luck with System Exec.vi

    I've got an application that I'm trying to update with a separate LabVIEW application (the "Updater"). It's the "Check for Updates" capability you see on other major apps.
    Here's the glitch: When the Updater tries to launch "setup.exe" using "System Exec.vi", The installer seems to catch the attempt and pops a dialog titled "Windws XP Setup" saying "Please go to the Control Panel to install and configure system components".  The install does not begin and the installer closes (if it was ever open!).
    Running the same installer by double-clicking the "setup.exe" file from windows runs just fine.
    Here's the question: "How can a LabView app launch an installer?" 

    Could you show the code.
    Look at the path where you want to run the code.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to start Bea 9 asynchronously with Ant?

    Unfortunately the whole text is condensed because of a forum bug. I hope, you still read it.
    With Bea 8 it was possible to start the Bea application server asynchronously with Ant.
    But I couldn't start <b>Bea 9</b> asynchronously with Ant. I get this error:
    <pre>
    spawn does not allow attributes related to input, output, error, result
    spawn also does not allow timeout
    finally, spawn is not compatible with a nested I/O <redirector>
    </pre>
    This is my Ant target:
    <pre>
    <target name="start_weblogic" description="Start Bea Weblogic asynchronously">
    <exec executable="C:\bea\user_projects\domains\FooBar\bin\startWebLogic.cmd"
    dir="C:\bea\user_projects\domains\FooBar"
    failonerror="true"
    spawn="true" />
    </target>
    </pre>
    Why doesn't it work? What Ant script I need to start Bea 9 application server <b>asynchrously</b>?
    I need this for our Daily Build. In the middle of the automatical building process the application server needs to be started <b>automatically</b>.

    If you close Firefox while in full screen mode then Firefox should reopen in full screen mode the next time.
    That choice is saved in the localstore.rdf file in the profile folder.
    *http://kb.mozillazine.org/localstore.rdf

  • [solved] how to start the rabbitmq-server with systemctl

    I got the rabbitmq package from https://aur.archlinux.org/packages/rabbitmq/. Upon installing with 'pacman -U', I got the message
    ==> WARNING:
    ==> This systemd unit executes rabbitmq as rabbitmq user. This is *DIFFERENT*
    ==> from the legacy sysvinit scripts included in the package that
    ==> default on using the "root" user. DO NOT MIX usage of this systemd unit
    ==> with rc.d initscripts, or permission problems may arise.
    ==> To fix those, use the following command (as root):
    chown -R rabbitmq.rabbitmq /var/lib/rabbitmq
    ==> DO NOT DELETE anything manually, that may make your rabbitmq install
    ==> unusable, until deletion of everything under /var/lib/rabbitmq
    I did the 'chown' thing as advised, but I'm not sure if there is something more I should be doing (or not doing).
    I can start the server with
    sudo rabbitmq-server
    and then in another terminal I can do
    sudo /usr/sbin/rabbitmqctl status
    and the output seems to show everything working.
    The trouble starts if instead of directly running rabbit-server, I do
    sudo systemctl enable rabbitmq
    sudo systemctl start rabbitmq
    It seems to start fine and then I get (when I do systemctl status rabbitmq)
    rabbitmq.service - RabbitMQ Messaging Server
    Loaded: loaded (/usr/lib/systemd/system/rabbitmq.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Mon 2014-12-29 02:03:25 GMT; 4s ago
    Process: 25657 ExecStop=/usr/bin/rabbitmqctl stop (code=exited, status=2)
    Process: 25549 ExecStart=/usr/bin/rabbitmq-server (code=exited, status=1/FAILURE)
    Main PID: 25549 (code=exited, status=1/FAILURE)
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * epmd reports: node 'rabbit' not running at all
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: no other nodes on brunnhilde
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * suggestion: start the node
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: current node details:
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - node name: 'rabbitmqctl-25657@brunnhilde'
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - home dir: /var/lib/rabbitmq
    Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - cookie hash: 59JWXfWlAKuxru4vaTbvBQ==
    Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service: control process exited, code=exited status=2
    Dec 29 02:03:25 brunnhilde systemd[1]: Unit rabbitmq.service entered failed state.
    Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service failed.
    I presume this failure has something to do with the systemd warning that I got when installing, but I am not really sure what to do.
    Has anyone got rabbitmq server working using systemctl?
    Last edited by mjandrews (2014-12-29 20:25:13)

    I seem to have fixed it now.
    I changed  /etc/rabbitmq/rabbitmq-env.conf from
    NODENAME=rabbit
    NODE_IP_ADDRESS=0.0.0.0
    NODE_PORT=5672
    LOG_BASE=/var/log/rabbitmq
    MNESIA_BASE=/var/lib/rabbitmq/mnesia
    to
    NODENAME=rabbit
    NODE_IP_ADDRESS=127.0.0.1
    NODE_PORT=5672
    HOME=/var/lib/rabbitmq
    LOG_BASE=/var/log/rabbitmq
    MNESIA_BASE=/var/lib/rabbitmq/mnesia
    and that seems to have done the trick.

  • How to start an applet offline with JNLP?

    I want my applet to work offline. It uses Java3d and that is why it needs JNLP. I have made sure that it doesn't make any network connections. I have also put the JNLP file that it uses, java3d-latest.jnlp in the same directory as the applet. It finds this jnlp file, but it doesn't find the applet-launcher class. I get "java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher". I try to solve this by putting the applet-launcher.jar in the same directory as the applet, but it still doesn't find the applet-launcher class. What can I do to make the applet start offline?
    I need it to work offline, because I am going to make a screensaver from the applet. This is the applet code in the page:
    <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
    width=100%
    height=100%
    archive="astrals.jar,
    applet-launcher.jar,
    http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
    http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
    http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
    http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar">
    <param name="codebase_lookup" value="true">
    <param name="subapplet.classname" value="OrchideaOptM">
    <param name="subapplet.displayname" value="OrchideaOptM">
    <param name="jnlpNumExtensions" value="1">
    <!--<param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">-->
    <param name="jnlpExtension1" value="file:/C:/java/3dflower/build/classes/java3d-latest.jnlp">
    <param name="progressbar" value="true">
    <param name="noddraw.check" value="true">
    <shortcut online="false">
    </applet>
    You can view my 3d applets here, they work online:
    http://astral.mobile-visuals.com/3d_visuals.php

    I think you can do that you have to use a combination of javascript and html. use the Onclick event handler to call a java script function let say startApplet and in this function open a new window and write the <html><applet code= width= height=> </applet> </html> in that window and you will be able to start your applet that way.

  • How does one run a *.exe with a Java program?

    Hi,
    I'm looking for a way to run an executable (*.exe) or batch file (*.bat) from within a Java program.
    Any suggestions, leads, or examples appreciated.
    Thanks!

    Runtime.getRuntime.exec("pathTo/yourapp.exe");
    For any type of interpreted scripts, the interpreter should be added:
    Runtime.getRuntime().exec({ "command.com", "mybat.bat"});
    or
    Runtime.getRuntime().exec({"/bin/sh", "configure.sh"});

  • [b]How to start a process bpel with a pick activity?[/b]

    I write a bpel asynchronous process that begins with the activity pick but I can not make the process continue with the activity receive, Example:
    <pick createInstance="yes">
    <onMessage partnerLink="BookStore"
    portType="bst:BookPurchasePT"
    operation="BookPriceQuery"
    variable="BookQuery">
    </onMessage>
    <--!receive ???>
    <pick/>
    <--!receive ???>
    As continuous process ?
    Thanks

    You don't need to add a receive.
    A pick "onMessage" branch is effectively doing the same thing as a receive activity.
    When you add the onMessage branch of pick you choose the partnerlink, operation, and can create an inputVariable.
    You can then deal with the input variable in the first step of the process.

  • HT2589 How to start an iTunes account with an iTunes card with $15?

    I need help.

    You can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • How to use iMac to work with windows computers like pcAnywhere?

    I just bought my first iMac, and love it. I run pcAnywhere (version 12.1) on a few windows computers for work, but need to connect to them via my new iMac and using a phone line modem.  How do I do this; and I am fairly new to Mac.  I have tried to install the pcAnywhere on my Mac, using pcAnywhere Cross Platform, but it will not connect at all and the error code I get is below:
    You can't open the application "pcAnywhere CrossPlatform" because PowerPC applications are no longer supported.
    It took me over an hour to get it installed, via java downloads.  I connect on my old PC's with a phone number to connect via the modem because where I am connecting to has no Internet other than a phone line.
    Please help!!

    The PCAnywhere application you are trying to run is too old to be supported on a Mac running Lion, Mountain Lion, or any newer MacOS.  I would check to see if PCAnywhere has released an updated version of the application that you can use.  If not, you will probably need to go the route of virtualization (or keep an old PC around for supporting work).
    If you have to use virtualization, then you might want to consider using Virtual Box (a free app) to install Windows 7 on a virtual PC, then just run the PC version of your PCAnywhere software just like you would on any other PC.  You could use Virtual Box to install a MacOS 10.6.8 (Snow Leopard) instance and run your existing Mac version of the PCAnywhere software, but you would probably be better off to just use the Windows version.

Maybe you are looking for