How to launch a .exe with another exe

I use Labview 8.2
I would like to know if it is possible to launch an application (supplying the path for exemple)(created also by Labview) via a specifc  Labview function inserted into another application.
Thanks a lot
Daniel. 

Is what you are looking for the "System Exec.vi" found under Connectivity\Libraries & Executables ? It allows the launching of an executable, with command line input if appropriate, from within LabVIEW.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • How can I use Bluetooth with another devices?

    How can I use Bluetooth with another devices?

    You can set up your FaceTime account in Settings > FaceTime.

  • How to communicating one application with another?

    I wanted to make a web site that have the ability to view,update,insert and delete record in a database. How to do that? How can one application communicate with another? example, I wanted to have XHTML communicate with Java and Java to communicate with my database that is pointbase database.

    Multi-tier application communication is a somewhat complex matter. It may be made using differents techniques and designs. But like Sum-shusSue said, a typical Java-based solution would use these Java technologies: JSP (Java Server Page) for the presentation side (the client), Servlet or EJB (Enterprise Java Bean) for the server-side logic. The communication with the Database is made through JDBC.
    I suggest that you take a look at the J2EE edition of Java. That stands for Java 2 Enterprise Edition and it is specifically made for enterprise system development, such as Servlet, JSP, EJB, etc...
    This is a whole lot of new subjects and, from my humble experience, it is not that easy. i.e. I would not recommend it for strict newbies. However, if you have some months of Java coding on your side, maybe you should take a look. You can check first the left menu of this site, you'll find, under Technologies the sub-menu J2EE. There's also, somewhere on the site, tutorials on differents J2EE topics. Finally, I would recommend you this book:
    Professional Java Server Programming, J2EE 1.3 Edition, edited by Wrox. Of course, there a lot of other books on hte market. J2EE is a hot topic!
    Hope this help...
    Simon

  • How to replace a movieclip with another movieclip

    How to replace a movieclip with another movieclip
    Hi,
    I am having a swf called tchild.swf... in this i got a
    movclip 'child1'. i am loading this tchild.swf into another swf
    tparent.swf within 'mcloader' movie clip.. i got another movclip
    called 'picture1'
    i am loading tchild.swf into mcloader movclip.. and i want to
    load 'child1' moviclip into picture1..
    how to replace a picture1 movieclip with child1 mc..
    PS: i dont want to load picture1 from library.. its on the
    stage.

    AWT or Swing?

  • How can I file share with another person if both of us are using Mac operating systems?  Do we need to use a third party file sharing system or does apple have this capability?

    How can I file share with another personif both of us are using Mac operating systems (one of us using a Mac laptop and the other using iMac).  Our intention is to have a working document that can be changed by both parties over time and both parties will have visibility to the others changes.

    Use SugarSync

  • How can i share music with another person?

    How can i share music with another person?

    purple_tuesday,
    See a post of Jeff Bryan's which explains about the
    iPod-to-computer transfer in detail:
    reverse download... from ipod to computer
    -Kylene

  • How to open a pdf with a ".exe" extension?

    Hi everyone,
    I am new. Someone just sent me a document they created in Acrobat 9 pro. They say it is a password protected pdf. When I click open or download, it changes from 1 KB to 28 bytes and displays a message that the content has been deleted. I would really appreciate any insights!
    In case it helps, I am using Windows 7 and have Acrobat XI Pro. Thanks.

    If it was a PDF with a .exe extension I suspect you have just been injected with Virsus, Worm, Trogan Horse or some other malware.  A PDF if it’s a true PDF will only have pdf extension.  When some one says it’s a Pdf but say it will be sent as exe file don't download it. Or if itd ownloaded don't open it trash it immediately.

  • How to launch an application with elevated administrator account privilege from windows service even if the account has not yet logon

    Here is the case:
    OS environment: Windows 7
    There are two user accounts in my system, standard user "S" and administrator account "A", and there is a windows service running with "Local System" privilege.
    Now i logged-in with account "S", and i want to launch an application with elevated administrator account "A" from that service program, so here is the code snippet:
    int LaunchAppWithElevatedPrivilege (
    LPTSTR lpszUsername, // client to log on
    LPTSTR lpszDomain, // domain of client's account
    LPTSTR lpszPassword, // client's password
    LPTSTR lpCommandLine // command line to execute e.g. L"C:\\windows\\regedit.exe"
    DWORD dwExitCode = 0;
    HANDLE hToken = NULL;
    HANDLE hFullToken = NULL;
    HANDLE hPrimaryFullToken = NULL;
    HANDLE lsa = NULL;
    BOOL bResult = FALSE;
    LUID luid;
    MSV1_0_INTERACTIVE_PROFILE* profile = NULL;
    DWORD err;
    PTOKEN_GROUPS LocalGroups = NULL;
    DWORD dwLength = 0;
    DWORD dwSessionId = 0;
    LPVOID pEnv = NULL;
    DWORD dwCreationFlags = 0;
    PROCESS_INFORMATION pi = {0};
    STARTUPINFO si = {0};
    __try
    if (!LogonUser( lpszUsername,
    lpszDomain,
    lpszPassword,
    LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT,
    &hToken))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if( !GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)19, (VOID*)&hFullToken,
    sizeof(HANDLE), &dwLength))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if(!DuplicateTokenEx(hFullToken, MAXIMUM_ALLOWED, NULL,
    SecurityIdentification, TokenPrimary, &hPrimaryFullToken))
    LOG_FAILED(L"DuplicateTokenEx failed!");
    __leave;
    DWORD dwSessionId = 0;
    WTS_SESSION_INFO* sessionInfo = NULL;
    DWORD ndSessionInfoCount;
    bResult = WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, 0, 1, &sessionInfo, &ndSessionInfoCount);
    if (!bResult)
    dwSessionId = WTSGetActiveConsoleSessionId();
    else
    for(unsigned int i=0; i<ndSessionInfoCount; i++)
    if( sessionInfo[i].State == WTSActive )
    dwSessionId = sessionInfo[i].SessionId;
    if(0 == dwSessionId)
    LOG_FAILED(L"Get active session id failed!");
    __leave;
    if(!SetTokenInformation(hPrimaryFullToken, TokenSessionId, &dwSessionId, sizeof(DWORD)))
    LOG_FAILED(L"SetTokenInformation failed!");
    __leave;
    if(CreateEnvironmentBlock(&pEnv, hPrimaryFullToken, FALSE))
    dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
    else
    pEnv=NULL;
    if (! ImpersonateLoggedOnUser(hPrimaryFullToken) )
    LOG_FAILED(L"ImpersonateLoggedOnUser failed!");
    __leave;
    si.cb= sizeof(STARTUPINFO);
    si.lpDesktop = L"winsta0\\default";
    bResult = CreateProcessAsUser(
    hPrimaryFullToken, // client's access token
    NULL, // file to execute
    lpCommandLine, // command line
    NULL, // pointer to process SECURITY_ATTRIBUTES
    NULL, // pointer to thread SECURITY_ATTRIBUTES
    FALSE, // handles are not inheritable
    dwCreationFlags, // creation flags
    pEnv, // pointer to new environment block
    NULL, // name of current directory
    &si, // pointer to STARTUPINFO structure
    &pi // receives information about new process
    RevertToSelf();
    if (bResult && pi.hProcess != INVALID_HANDLE_VALUE)
    WaitForSingleObject(pi.hProcess, INFINITE);
    GetExitCodeProcess(pi.hProcess, &dwExitCode);
    else
    LOG_FAILED(L"CreateProcessAsUser failed!");
    __finally
    if (pi.hProcess != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hProcess);
    if (pi.hThread != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hThread);
    if(LocalGroups)
    LocalFree(LocalGroups);
    if(pEnv)
    DestroyEnvironmentBlock(pEnv);
    if(hToken)
    CloseHandle(hToken);
    if(hFullToken)
    CloseHandle(hFullToken);
    if(hPrimaryFullToken)
    CloseHandle(hPrimaryFullToken);
    return dwExitCode;
    I passed in username and password of account "A" to method "LaunchAppWithElevatedPrivilege", and also the application i want to launch, e.g. "C:\windows\regedit.exe", but when i run the service program, i found it do launch
    "regedit.exe" with elevated account "A", but the content of regedit.exe is pure back. screenshot as below:
    Can anyone help me on this?

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • How do sync my iPad with another computer?

    How do I sync my iPad with my new computer?  I have imported all my songs, books, apps, etc. but did not do it by dragging over the old iTunes folder because the file structure is different and I did not want to mess up the new file structure with the old one.  Now how do I get my new computer to become the "one" that my iPad syncs with?

    Have you ever synced with this computer before? If you did, have you synced with another computer since then?

  • How to sign a 509certificate with another non CA certificate

    Hi,
    How to sign a x509 certifcate with another certificate (not CA)? does keytool helps?

    you will probably want to use OpenSSL. google around for how to setup your own certificate authority, such tutorials usually include instructions on signing and importing with keytool etc.

  • How to replace one variable with another in large number of queries

    Hello guys!
    I have this situation: our company needs to use one variable instead of another for certain amount of queries.
    Is there some way to automatically replace one variable with another for a certain characteristic in big number of queries ( like 150 - 200 ) ? Doing this manually would take lots of time)
    Apreciate your help!

    you could try (at your own risk) the following:
    1. search the technical id (ELTUID) of your variable in table RSZELTDIR
    2. see where this variable is used in table RSZELTXREF (by filling RSZELTDIR-ELTUIID in RSZELTXREF-TELTUID)
    3. add similar entries for your new variable
    4. delete the entries for the old variable (they're part of the key, so you can't simply "change" them)

  • How can i share downloads with another ipod?

    My son wants to have some of the music I've downloaded - his itunes is on a different pc.  How can I share music with him?

    Copy the music from your computer to his.
    You can use a cd, flash drive, external drive
    or home share
    Understanding Home Sharing

  • How share an e-book with another Ipad

    I want to share ebooks with another Ipad, what shall I do ?

    Well, this is a problem because you purchsed the book through the iTunes Store and therefore it is associated with your Apple ID.  Just as you cannot share music, you cannot share books in general.

  • How to launch an adapter with an external software ?

    Hi everybody,
    Is it possible to launch an adapter thanks to an EXTERNAL tools (software or Java program)? and how ?
    But... I have some constraints:    :-((
      - no use of BPM
      - no use of PCK
      - no use of "poll interval" option for a file adapter
      - no use of a Plain J2SE decentralized Adapter Engine
      - Adapters are these one of Integration Service's AE and especially: File, JDBC, SOAP.
    Example: I defined a sender file adapter which take a file inside a folder and give it to XI (cf. IR). But with all my constraints, I don't know how I can launch this "sleeping" actived adapter.
    Any helps/ideas are welcome !
    Mickael

    Hi,
    Yes, you understood my problem: it's just <u>to trigger an adapter with a remote call</u>.
    In fact, one want to find an easy solution for end-user. For them, it's just (thanks to a button) "I want to send my data to R/3" and that's all... They don't know that their data are inside a file or a table or a web service and they don't know that there is XI !
    Ananth, the HTTP solution is not efficient for us, because HTTP program needs to read a CSV file and transform it to a XML message before sending to XI. Thus in this case, it would be like if you RE-create the functionalities of a File Adapter in another system, whereas this one exist in standard in  XI => No interresting!
    Mickael

  • How to launch the dialog with a wizard having train component

    Hi
    I have a page with a button and onclicking the button i need to show a dialog wizard( a wizard with 3 pages with the train component to move back and forth)
    I have created a taskflow as a train with 3 pages, but onclicking the button i am not able to launch the dialog as a taskflow.
    Any documentatino on how to achieve the same or some sample application reference is highly appreciated
    Bittu Bansal

    On clicking the button i want to show a popup and that popup drives me through the wizard.
    However i am able to achive the same right now.
    I am calling a popup using showPopupBehaviour and that popup i have created the region where i have embedded the task flow for a train wizard.
    Thanks
    Bittu Bansal

Maybe you are looking for

  • HP photosmart C309a: Wireless radio is not functioning

    I completed the wireless network test report and the diagnostics summary states that the wireless is not working and there were no wireless networks detected. This printer had been originally connected directly to the internet port and had been able

  • Cross references in structured documents

    Hi there, Perhaps someone of you has a tip for me regarding cross references in structured FrameMaker. The problem we have at the moment: We were working with FM8 structured. But - as we worked with FM documents most of the times - very often the xml

  • LMSERVICE disappeared after deploying patch with sdm gui

    Hi All, I'm running SM 4.0 SP13 on Win Enterprise 32 Bit Unicode. For E2E diagnostics I had to deploy a new version LMSERVICE SP13 with the software deployment manager. Before deploying I get a pop up with the question that a java instance is running

  • Queries on Modelling,Extraction

    Hi BW Guys,                     I have one query on modelling that is 1) If we have 50 characteristics in a cube,how many dimensions we will create,suppose we created 10 dimensions,how would you arrange the characteristics ?  Would you give any prefe

  • TS1389 Keep Asking Me to Authorized Computer

    I still can't play the music i just bought, it still ask me to authorized the computer. I already try the suggestion from FAQ, but none of them work, please help what else i can do?