How to start an application in the background using "oscmd" on windows

Is there any way to launch a windows application using oscmd without suspending xmath?
From a "cmd" window one can use the start command:
> start notepad
Which starts the application without suspending the "cmd" window.
From xmath command line, one may use:
> oscmd("start notepad")
This starts the application. However, the user cannot interact with xmath as long as the application is running.
Thanks
Xmath715, windows xp version 5.1 SP2

Hi Farshid,
There is a command in the Shell API of Windows that runs an executable:
#include <utility.h>
#include <ansi_c.h>
#include <shellapi.h>
#include <windows.h>
int main (int argc, char *argv[])
    int res;
    if (InitCVIRTE (0, argv, 0) == 0)
        return -1;    /* out of memory */
    HINSTANCE stuff;
    stuff = ShellExecute(NULL, "open", "notepad.exe", NULL,NULL, SW_SHOW);
    printf("%i",stuff);
    return 0;
You can build a similar program into an executable and since the Parent
executable will finish executing, control will return to XMath even
while notepad is still open.
Richard
Field Sales Engineer, New Jersey
National Instruments

Similar Messages

  • How to run an application in the background when iMac starts up?

    Hi,
    I installed TextExpander a couple of months back. It normally runs in the background and doesn't appear in my list of running applications when I cycle through them with Cmd+Tab. This is how I like it.
    Of late though, TextExpander starts up when I switch on my machine, but it now appears as an application running in the foreground; if I Cmd+Tab through my running applications, TextExpander is listed among them.
    I'd prefer if I did not see it when switching between applications.
    I've tried restarting the machine, but to no avail. Also, there is nothing in the preferences to run in the background.
    (Possibly unrelated: I don't recall doing anything in particular that might have caused this change in behaviour, but I have noticed recently that TextExpander has found an 'older version' and is asking me if I want to remove it. I don't remember updating it to a newer version, and I don't believe I have it set to auto-update.)
    Can anyone explain how I can make it run in the background? I'd be very grateful.
    Thanks and best regards,
    Ken.

    Mc128k wrote:
    To run your app as a daemon (if you are really sure it can) check the app's preferences panel, there should be sometthing like "show in dock".
    A little embarrassing, but +there is+ an option within TextExpander's preferences to "Hide TextExpander icon in Dock". Don't know how I missed it. I checked the preferences on two separate occasions! Feeling a little morto'ed.
    In any case, to confirm what I've done:
    -Within System Preferences > Accounts > Login items tab, I have selected the "hide" checkbox for TextExpander.
    -Within TextExpander's preferences, I selected the "Hide TextExpander icon in Dock" checkbox.
    TextExpander still runs, but doesn't appear in the Dock or in the list of running applications (that I can switch between with Cmd+Tab).
    Result!
    Tx for your help.

  • 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 :)

  • How to put the background image in Title Window?

    Hi,
    I'm newbie in flex. I 'm using Flex 4.
    Can anyone give me some guidelines on how to put the background image in Title Window?
    Is it possible to do this?
    Thanks.

    Hi,
    Check the below sample code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|BorderContainer {
                background-image:Embed(source="image/wheres_the_green_rez.jpg");
                background-image-fill-mode:clip;
        </fx:Style>
        <s:TitleWindow width="100%" height="100%">
            <s:BorderContainer width="100%" height="100%"/>
        </s:TitleWindow>
    </s:Application>
    Regards,
    Anitha

  • How is it possible to adjust the background images and the text in Mail?

    How is it possible to adjust the background images and the text in Mail?

    Here's the solution I used to solve the same problem. If you're not comfortable editing the source files, this might be more than you want to take on--but I've done it to several files with no ill effects. You can follow the instructions on this page and the referenced original post from (he includes a link on the page). Good luck! He's got some great tips on some of his other pages.
    http://photo.rwboyer.com/2010/03/15/aperture-3-book-theme-trick/
    A warning about editing the Master pages--it only edits them in that book--it doesn't update the theme. So if you go to create another book with those same layouts, you'll have to duplicate the book and replace all the images. An alternative would be to create a "clean" book with no photos in it and then just use that as a starting point each time.

  • How can I record with GarageBand 1.3 in the background using other app?

    How can I record with GarageBand 1.3 in the background using other app?
    I use iPad 2 with iOS 6 and GarageBand v1.3.
    I'd like to play an other app like Sunrizer synth while the GarageBand is recording in the background in a track.
    By now I can do it only using the build-in mic of iPad, but this is not the point.
    Can I record other apps in a GarageBand track?
    Thanks a lot for your time.

    I suspect you are probably correct about the reasoning, although there are already a myriad of ways to do that.
    Don't get me wrong - I never said I like this. But it is consistent with other Apple applications, that are similar restrictive; you cannot take a screenshot, when dvd-player is running for example.
    That are the moments, when I am glad that MacOS X is a unix system under the hood

  • Running a Java application on the background

    How can I run an applet on the background ? (UNIX and Windows)
    Thanks!!

    Running "in the background" is not really relvent on Windows as CMD[1] does not have this functionallty (that I know of) and you normally execute appliucations in the GUI, unless you are talking about making it a service, running when the user logs off (nohup in UNIX, Windows Services in windows), if thats what you are after, NT JAVA +Service in google.
    [1] If you use a diffrent shell, such as Cygwin you can get this functionallity under Windows.

  • How to install .exe applications and the java on m...

    hi ! sorry if this has already been discussed but i wanted to know ~~~ how to install .exe applications and the java on my n9 ~~~ ... because i wanted to use plenty of other apps which are not supported  but these 2 would help fix the issue

    Is it stil not possible to install java applications on N9?
    Files containing JAD and JAR-ending in the file name.
    I am not familiar with Nokia N9 so I ask even if I suppose that JAR and JAD files are not able to install on a Nokia N9.
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • How can I get rid of the background in a photo of a face?

    How can I get rid of the background in a photo of a face?

    Please post your picture. To upload it into a message, click the camera icon.

  • Help - how can I remove text in the background?

    I am translating a text from English into Portuguese in a document created in Germany (as .mif 7).
    After I inserted the Portuguese text, a ruler and the words "498 Entwurf 15.06.2011" in red and "Abstand" in sky blue started to appear in the background, as well as some kind of a grid (please see attached image). I need them to disappear when the document is printed, but I haven't been able to make them disappear so far. The words in red indicate the name of the document (498) and the date when it was originally created. I need the document to have a white background only with the letters in black and images (just like the original, but in Portuguese - no words in sky blue and red and no grid).
    This is probably easy to solve and I may sound really silly, but I've already lost 3 hours and I'm getting desperate because I need to deliver the document as soon as possible.
    Any help would be much appreciated.
    Best,
    Paulo Rodrigues

    Hi,
    I think the converter you are using to convert it to portuguese is a free converter and it has been noticed that when you use the free or trial version of any converter ,it generally puts its name in the PDF document and you have to buy that product to get rid of it.If thats true then we would not be able to remove that text.
    Kindly let me know if thats correct what i said.
    Thanks
    Harpreet.

  • [Desktop][Running] Running Spotify Application in the Background...

    Think it would be very convenient if we could run the Spotify application in the background. I remember it used to be an option under "Edit>Preferences..." before a certain update removed it... O.o

    Updated: 2015-06-21Hello!
    With "running in the background" do you mean minimize to system tray?
    If so, version 1.0.7 added that option again.
    Please check under Menu => Edit => Preferences => Startup and Window Behaviour => Close button should...
    Or did you mean something else?

  • How do you download applications off the internet?

    Whenever I try to download an application off the intenet it comes up with a pop-up giving me two options, to either save the file or sleect which applciation to open with, when I save the file it saves to my desktop, and when I double click it it opens up with text edit, and is just pages and pages of weird letters and symbols, and I've tried most of my applciations and it never works. How do I download applications off the internet? Please help!

    If the file extension is .EXE, you are downloading Windows compatible software, you need software that is Mac compatible. What software are you attempting to download?
    Stedman

  • How can i launch application from the terminal in 32-bit mode?

    how can i launch application from the terminal in 32-bit mode?
    everytime i have to check and uncheck the finder's info panel and it's really annoying, thanks!

    ''Courtesy of cor-el''
    https://support.mozilla.com/en-US/questions/823873
    Other users should note that Firefox has public release versions of 64bit only for Mac And Linux; not for Windows, yet.

  • How to start Integration server with the user XISUPER

    Hi,
    How to start Integration server with the user XISUPER?
    Regards,

    Mahesh,
    In the post installation document, under Creating User XISUPER,
    I see the following,
    1.You must now log on to the Integration server host with the user XISUPER, to switch the initial password to a valid password.
    2.You must restart the J2EE engine to transfer the user creation to the J2EE immediately.
    I am unable to proceed here.Can you please help me to resume the post installation steps ?
    Thanks,

  • How to start a thread after the execution/termination of another thread.???

    Hello,
    How to start a thread after the execution/termination of another thread....???
    For example:
    consider two threads: ThreadA and ThreadB
    I could start the ThreadB after the execution of ThreadA.
    How to identify the termination of one thread.....???
    Please help me...
    Thanks & Regards,
    Kayalvizhi

    What do you mean with "it doesn't work"? Do you get a compiler error? Do you get an exception at runtime? What's the error message?
    Jesper

Maybe you are looking for

  • Budget Commitment Report - S_ALR_87013558

    We have an issue with the Budget Commitment Report S_ALR_8701355 as explained below. Org Structure: A* Projects are separate small Projects to track Capital and Operating Expenses But all the Capital Purchases are done only through C* WBS. And accord

  • Display adapter causing bsod

    hellloo I am currently trying to fix my bsod issue with my evny dv6 64bit running windows 8 (16gb RAM, intel i7 8 cores), which has been happening since the first month I got it, for many different reasons. Updating drivers and such has fixed a lot,

  • When renaming an address book through properties, I can no longer see the new address book in my list. Where did it go?

    I have about 30 different address books. Some of them where old but i didn't want to delete them. I no longer wanted them at the top of my list so I went to properties and added "z-" to the folder name to have them at the bottom of the list. Now I ca

  • MY PAGE IS ALL RED , flash not working w/ chrome

    when i go on a page it shows all red, no pictures work, but when i go to the adobe site it says i have the latest version installed... please help m! thanks

  • IllegalArgumentException = hard to catch it.. (help)

    Hi there, I've got little problem catching the "IllegalArgumentException", if you guys know how to solve this problem that'd help me a lot.. The code works, but if I type something else than what's assigned in Enum it shows IllegalArgumentException..