Get the .exe with LaunchExecutable() return value

Hello

I try to get the return value from an .exe file started with LaunchExecutable(). Do you think it is possible or am I wrong?

Thank you!

Adrien T.

Adrien:

If you run the CreateProcess() executable, you can then use GetExitCodeProcess() to read the results.

See more details here: http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310

Note that you must have the Windows SDK (aka Win32 API) installed to use CreateProcess/GetExitCodeProcess.  The SDK is provided with CVI, but is not installed by default.  If you have not installed, reinstall CVI, selecting only SDK or Win32API (depending on the version of the CVI you).

Tags: NI Software

Similar Questions

  • How to fill in the right side of the shuttle with display/return values?

    Hello

    I know, the right way to fill in the right side of the shuttle's only:
    declare
         v_list     apex_application_global.vc_arr2;
    begin
         select profile_name return_value
           bulk     collect
           into     v_list
           from     user_profiles
          where     user_id = :p61_user_id;
    
         return (apex_util.table_to_string (v_list));
    end;
    It is comfortable for the user to see the name of the profile.
    However, I need a profile_id as return value, as I have on the left side of the shuttle.

    The left side of the shuttle is filled with a selection list with display/return values, as you know.
    I need both sides of the shuttle to return profile_id in order to create a merger.

    How is it possible to fill the right side of the shuttle with display/return values?

    Make a selection list on the left side of the shuttle to return profile_name as return value as well.
    In this way, the two parts of the shuttle will return the same value, which could be used as a State of fusion.

  • Get the exe vi

    Hello everyone, please help me, I built a file EXE of VI, but unfortunately I deleted the file VI, is it possible to get the VI with the EXE again

    Jorgais wrote:

    is it possible to get the VI with the EXE again

    Laughing out loud

  • How can I get the max of a measurement value

    How can I get the max of a measurement value?

    http://forums.NI.com/T5/LabVIEW/how-can-I-return-the-maximum-value-from-a-voltage-sensor-over/m-p/30...

    I tried the while loop max-min-solution described in this link. But this using my myRio acceleration measurement no longer works. It seems to hang.

    I use the I2C Communication.

    The inner circle while loop is a bad construction.  It will be either executed once, if enter the Boolean value is True, or forever if the value is false.

    Put your records on the timed loop shift and eliminate inside while loop.  Then your code should work.

  • Get the date with the millisecond of the table

    I want to get the date with milliseconds in table format in the variable. How to get there?

    SQL > create table test_date (col1 date);

    Table created
    SQL > insert into test_date values (sysdate);

    1 row inserted

    SQL > commit;

    Validation complete

    SQL > select * from test_date;

    COL1
    -----------
    18/12/2009


    Here I have to get datewith "millisecond" format and put it into the variable varchar2 (50) and pass this
    to Java.


    SQL > select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date;

    Select to_char (COL1, ' mm/dd/yyyy hh24:mi:ss. FF') of test_date

    ORA-01821: date format not recognized

    SQL >

    Thank you
    Khaldi

    user601042 wrote:
    I want to get the date with milliseconds in table format in the variable. How to get there?

    SQL > create table test_date (col1 date);

    Your data col1 type should be TIMESTAMP.

    See you soon
    Sarma.

  • I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help?

    I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help

    Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.

  • How can I get the read head to return to the location, it's immediately before starting playback. This used to be a preference but I don't find it in the latest version of logic.

    How can I get the read head to return to the location, it's immediately before starting playback. This used to be a preference but I don't find it in the latest version of logic. What I want to do is; Once playback is stopped the playhead returns to the previous starting position. Where is the setting for this? Is it still an option that I can find nothing in the online help.

    Hi there, don't you mean this one?

    Good day!

  • C20/SX20: is there a way to get the cdr with loss/jitter of the stats?

    I'm trying to get a report with loss/jitter, but doesn't cdr can not find a way to do it.

    (a) TMS is able to report COR but only on the participants/duration/encryption/protocol of appeal

    (b) C20 web gui has information but only with a number of clicks on and only for a call each time

    (c) API C20 (cli) I found some commands, but nothing for the loss/jitter
    I tried xstatus Diagnostics appeal channels-> only for calls in progress.
    tried xHistory recent CallLogs | Call-> nothing usable

    Is it possible to get the cdr with jitter/loss for each C20/SX20 counters in a framework?

    Methods to obtain these data is exactly what you have listed and must be carried out during the call.

  • deleted reception for windows buy but not print product code. How can I get the product code of return

    I bought a code produced, printed at the front desk but the product code does not print.  How can I get the product code of return?  I have the order #.

    Please see: key product & downloads

  • Get the data with more than one of the desired value

    Hello

    I need to shoot the records with one value of 'Other' more on delivery days fields.
    Delivery of fields are Mon, Mar, sea, game, Fri and Sam that indicates where the item will be shipped. The value can be at home, work, or other.

    Examples of data include:
    cust_id: 123
    Article: newspaper
    Mon: Home
    Kill: Work
    Sea: other
    game: Home
    Fri: other
    Sam: other


    And here is my request so far.
    Select
    cust_id,
    agenda,
    LUN,
    Mar,
    Kills,
    game,
    Fri,
    Sam
    sum (case when (del_mon = 'o' or del_tue =' o 'or del_wed =' o 'or del_thu =' o 'or del_fri =' o ' or del_sat = 'O') then 1)
    otherwise 0 end) as day_ctr

    of the customer

    Could you please help me with the right formula should I get this?

    Thank you in advance...

    Hello

    This should do it:

    Scott@my11g SQL>with sampledata as (
      2  select 123 cust_id, 'newspaper' item, 'Home' mon, 'Work' tue, 'Other' wed, 'Home' thu, 'Other' fri, 'Other' sat from dual
      3  union all
      4  select 456, 'newspaper' item, 'Home' mon, 'Work' tue, 'Home' wed, 'Home' thu, 'Home' fri, 'Other' sat from dual
      5  )
      6  --#### True query starts here ####
      7  select *
      8  from sampledata
      9  where (
     10  decode(mon,'Other',1,0)
     11  +decode(tue,'Other',1,0)
     12  +decode(wed,'Other',1,0)
     13  +decode(thu,'Other',1,0)
     14  +decode(fri,'Other',1,0)
     15  +decode(sat,'Other',1,0)
     16  )>1 ;
    
       CUST_ID ITEM      MON  TUE  WED   THU  FRI   SAT
    ---------- --------- ---- ---- ----- ---- ----- -----
           123 newspaper Home Work Other Home Other Other
    
  • Get the names and form field values

    Hi everyone please help me

    I tried the following code, but it returns me the result as ("found no fields")

    I'm not able to reach my pdf here, I tried with a method more evenly, always it returns nothing.

    When I went through the Forum, I heard about LiveCycle Form. If my pdf is Livecycle form based so please give me the code to reterive the form fields names and values,

    method 1:

    ' / / Let's start

    Set WshShell = CreateObject ("Wscript.Shell")
    WshShell.run "c:\F4.pdf Acrobat.exe.
    While not WshShell.AppActivate ("Adobe Acrobat"): 1000 Wscript.Sleep: Wend


    ' / / Set/Get Acrobat objects
    The App value = CreateObject ("AcroExch.App")
    Set AVDoc = App.GetActiveDoc
    Set PDDoc = AVDoc.GetPDDoc
    Define the JSO = PDDoc.GetJSObject

    ' / / Search fields and extract the Name value +.
    txt = «»
    If jso.numFields then
    for i = 0 to jso.numFields-1
    FN = jso.getNthFieldName (i)
    ' msgbox (x)
    the value of f = jso.getField (fn)
    F.value = FV
    txt = txt & fn & "=" & fv & ";"
    next
    MsgBox (txt)
    on the other
    MsgBox ("no fields found")
    end if

    Set AVDOC = Nothing
    Set PDDoc = Nothing
    Define the JSO = Nothing

    Method2:

    MyFile = "C:\output.pdf".
    Set AcroExchApp = CreateObject ("AcroExch.App")
    Set AcExAVDoc = CreateObject ("AcroExch.AVDoc")
    bOK = AcExAVDoc.Open (myFile, "")
    AcExAVDoc.BringToFront

    sMsg = «»

    If (bOK) then
    Set AFormAut = CreateObject ("AFormAut.App")

    If AFormAut.Fields.Count = 0 Then
    sMsg = "No there there no field (s) to read this PDF file"
    On the other
    sMsg = "There are" & AFormAut.Fields.Count & "fields in this PDF document.
    End If


    For every FormField in AFormAut.Fields
    FieldName = FormField.Name
    FieldValue = FormField.Value
    ' MsgBox AFormAut.Fields (Fieldname). Value
    sMsg = sMsg & vbLf & "," & Fieldname & "," & AFormAut.Fields (Fieldname). Value & "," & FormField.IsTerminal
    MsgBox SMsg

    Looks like there is no form field.

    Could you please tell me, how we can attach files in this forum. While I will attach my Pdf file

    You can put the file on acrobat.com ( https://acrobat.com/ ).

  • I lost the connection between the icons on the desktop and the program. When I click on an icon, I get the OPEN WITH menu.

    I click right-properties and I get C:\Windows\system32\rundll32.exe Application not found.

    I tried to download fixit and got the OPEN WITH menu.

    It sounds like your .lnk and/or your .exe file associations may have been lost.

    You can try to fix the ".exe" and ".lnk" file associations:
    'Windows XP file Association problems'
      <>http://www.dougknox.com/XP/file_assoc.htm >

    or you can try to do a system restore to a point in time before you had this problem:
    "How to restore Windows XP to a previous state"
      <>http://support.Microsoft.com/kb/306084 >
    If you have a .exe association problem, you may need to run the restore of the system from the command prompt:
    "How to start the System Restore tool by using the option of safe mode with the command prompt in Windows XP"
      <>http://support.Microsoft.com/kb/304449 >

    HTH,
    JW

  • Why do I get the "open with" screen every time I try to open a program?

    Whenever I try to open a program it shows full-screen. As for example... I opened firefox and it comes up with the open with screen so I take the option of firefox, then it said Open firefox.exe. He said: ' you have chosen to open firefox.exe which is a: application to: C:\program files\mozilla firefox would you like to save this file? "so I press Cancel because it's my only option and then I can use it. So if I try to open anything up as OBJECTIVE online, I get an error message saying "application not found" I push OK and then work.

    Hello

    · What is the number and the model of the computer?

    · Do you remember all the recent changes on the computer before the show?

    · What is the service pack installed?

    1. try the steps listed in the link below: cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP computer: http://support.microsoft.com/kb/923077

    2. online virus scanner and check if any malware or virus detected on the computer activity. You can run the scan for viruses online from the link below: http://www.microsoft.com/security/scanner/en-us/default.aspx

    NOTE: Make sure that you select the correct version of the operating system before downloading the scanner)

  • How to map the same tag of the element with a different value in BI Publisher rtf model.

    Hello

    I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.

    For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.

    < document >

    < TitleBlock >

    < number > D00002 < / number >

    < itemType > Document < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    < description > gtedgg < / description >

    < shippableItem > n < / shippableItem > < / cartridge > < / Document >

    < DMR >

    < TitleBlock >

    < number > DMR00002 < / number >

    < itemType > DMR < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    test nomenclature model bom1 < description > < / description >

    < POS > < value > Test < / value > < / POS >

    < shippableItem > n < / shippableItem > < / cartridge > < / DMR >

    < / AgileData >

    I followed steps below for map document model rtf with the same tag xml with a different value.

    1. install Office word 2013.

    2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.

    3. with the help of desktop publisher BI, created a model of document rtf file.

    4 imported the document rtf template example xml file.

    The data is loaded successfully.

    5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.

    7 saved the document in PDF format.


    Thank you

    Please mark it correct so that it is useful for others to find the solution to a similar request.

  • How to get the balance of an element value

    Hello

    I have a requirement to obtain related information with balance. I am able to read the information on the element except balance.how to get the value of the particular item balance.

    for the application-> transfer and process-> queries with trust-> value the month selected and chosen balances button and queries with the obtained item name break it down the value of the balance.

    These values I want in my query.i tried backend with calling package by passing parameters like the number of transfer, balance the id and date but iam getting value "0".

    IAM new to hrms, Please help me on how to get this balance of values

    Thank you

    Hello

    It is not very clear what you want to display in the form of balance for a given range of dates.

    It depends on how you have configured your balances and periods and balance which you are referring.

    The API allows for a given only date that matches the date earned.

    Say, for example, that you have a "basic salary" defined with a "Treatment period assignment to Date" dimension and feed of the element that corresponds to the base salary.

    "If you need get the 'wage base Total' (balance?) for the period February 1, 2015 ' to March 31, 2015", then you need get dates earned for payroll passes made during that period and call the package above with the appropriate settings.

    Another way is by querying the tables/views directly: you can use, for example - it's perhaps easier to your situation:

    Select sum (nvl (pbv.value, 0))

    of pay_balance_values_v the VB.

    where pbv.balance_name = 'base salary.

    and pbv.database_item_suffix = '_ASG_PTD. '

    and pbv.assignment_id =

    and pbv.effective_date between to_date (' 01/02/2015 ',' dd/mm/yyyy')

    and to_date (' 31/03/2015 ',' dd/mm/yyyy');

    Kind regards
    Rajen

Maybe you are looking for

  • I used disk sanitizer and now I can't run windows more

    I tried to reset my computer and self-taught disk Sanitizer would do the trick. Obviously, he didn't Now, he said only: "non system disk or disk error" and it seems that I lost my OS. I would like to run windows vista on my computer but I don't have

  • 3300 in system ink has no

    HI all, using my printer very well for some years now, needed to put a new truck and since that he says,. error message: 0cx18a0401description of the problem: telling me ink system has failed, unable to copy, fax or print, refer to the manual..., err

  • Invalid package for the ESM Firmware signature

    I use OpenManage Essentials to update a newly installed server of PowerEdge R510 "noncompliant." The server running OMSA x 7.4.0 - 866 A00 on Windows 2008 64 fully patched. I got the last catalog installed in OME. 3 updates (firmware of network, netw

  • Selecting hierarchical LOV

    I've referenced the example here to display the LOV in groups.http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/47-select-one-choice-groups-169189.PDFQuestion is, how to link it to an attribute in my VO so that it selects the value that

  • IF statement at the end of the game

    So basically, I have a button that moves to a random location on the screen based on a timer. What happens if the statement would be correct at the end of the game, if the person does not click on the button before it moves to the new location? Thank