How to find out whether an exe program is running?

HI,
I'd like to run an executable program from TestStand.   Before I do that I would like to check whether this program is already running?
Can it be done?
Thanks

Hey Rafi,
It can be done.  You have a couple options.  All of the processes are handled by the Operating System so you can possibly try:
1-  Call a code module that will call into the Windows API and get all the process and see if that particular one is executing.
2- Using ActiveX steps call into the Windows API to get all the process and see if that particular executable is running.
You may have to read more about the Windows API to do this but I also think there are some SDK functions available to you as well.  Here is a link to an MSDN example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/enumerating_all_proces...
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • How to find out if an external program is running

    I am using LabVIEW 8.6 and have some vis that start an external program using the System Exec call. The program that is being started was not written by me, and I have no control over it. I need to make sure that it is started before I proceed, but I don't want it started more than once. At the moment I need to terminate it manually when I exit the vi. I also need to make sure that it is not running when I start the vi or I will get two copies. I have a switch to prevent  this, but it requires manual inspection and control every time I start the vi. I would like to know if there is some way the vi can list all the programs running and start the external program only when necessary. Closing it at the end would also be nice, but not as important as starting it once and only once. If I had control over the program I could use the existence of a file to tell me if the program is running or not, but that isn't possible. Is there some tricky way to use stdout in the System Exec call to accomplish the same thing?
    Rich

    Nothing tricky about it. Just use the command appopriate for your OS. For Windows:
    Then just use the Match Pattern function (for example) to search the string. 
    Message Edited by smercurio_fc on 03-02-2009 01:52 PM
    Attachments:
    Example_VI_BD.png ‏1 KB

  • How to find out whether a particular changed by some user

    Hi gurus,
                I am just trying to figure it out how to find out whether a particular user has changed a particular table or not. In other words table changes history. If any of you know about it please let me know.
    Thankyou
    Jason

    Jason,
      Ajay mentioned changes to Table not for Data. If you are looking for Changes to Table Data... you need to check System Log SM21. check for that perticular period.
    Nagesh Ganisetti.
    Assign points if it helps.

  • How to find out whether the system user is a vendor or a purchaser

    Hi,
    I am working in SRM 5.0. I have a requirement that some fields of Bid invitation can be visible by purchaser but not to bidder.
    How to find out whether the system user (user id though which system logged in) is a vendor or a purchaser. Kindly help me to resolve this issue.
    Sushmita Singh

    check his role.
    is surrogate bidding available for that bidder.
    via surrogate bid , purchaser can submit bid on behalf of the bidder.
    masa is correct
    pposa_bbp - search via user . so he might be  a purchaser.
    maintain business partner -supply your bidder bp number -edit
    go to bidder data .Under bidder data you must flag "PERMIT PROXY BIDDING"
    regards
    Muthu
    br
    muthu

  • How to find out, whether win 2003 is sick ?

    Hello together,
    I am running some SAP NW 7.0  Application-Server (Java+Abap) on Windows Server 2003  64bit in front to a central instance on a host  IBM System i with DB2.
    I don't have much knowhow in Windows Servers and want to know, how can I find out whether the windows server is running good.
    On which values (perhaps Task Manager) should I keep an eye on?
    best regards
    Carsten Schulz

    HI,
    you can get all information i.e memory,cpu,hdd space by running st06 /st06n
    How to watch the net speed to the central instance?
    i can't get exactly what you want to know
    but you can perform developer trace on work process running on application server using sm50 -> process ->trace -> display file look for error.
    you get buffer related info. by running tcod -st02  if required you can change the relavant parameter in instance profile
    you can get memory consume by user tranasaction  by running sm04 ->goto->memory
    you can get responce time of application server by smlg -> goto -> load distribution
    regards,
    kaushal

  • How to Find Out whether Standard IDOC is Availabl for  Transaction ?

    Hi,
        We are having SAP implementation 4.7E IS-OIL. We would like to know how to find out whether is there any Standard IDOC is Available for the SAP Transaction.
    Particularly for IS-Oil related transaction. e.g Load Confiramtion. T-code - O4G1.
        From a Given Transaction code is there any link which can tell whether IDOC is Present or not.
         Kindly help me.
    Regards,
    Umesh

    check for transaction....we41 and we42..
    check for proper process code...then check in we57,we81 and we82..
    also u can search in google..
    UMESH note that u need some fucntional exp for working in IDOC...try to crack yr head ..give time..n u ll get to know the things soon..as there is no defined standards to work in idocs..
    for more info u can ask me for [email protected]
    best regards
    Message was edited by:
            Madan Gopal Sharma

  • How to find out, whether an input document of a process is IRM-protected?

    Having an LiveCycle process with an input variable of type document.
    How to find out, whether the document is a standard PDF or an IRM-protected PDF?
    Thanks,
    Dilettanto

    Really no way to tell from a given PDF-file, whether it is IRM-protected?

  • How to find out, whether any invoice is having header text or not.

    HI all,
    How to find out, whether any invoice is having header text or not. wheich table we have to refer.
    Thanks
    mahaboob

    Hi,
    You need to use FM READ_TEXT.
    First you have to determine what text Object/ID/Language you want to read (you can have N text objects for an invoice header).
    The easiest way to do this is to have an example document with the text you want to read.
    For example in VF03.
    1-Goto->Header->Header Texts.
    2-Click on the text you want to read
    3-Double click on the text (Right side box) This will take you
    4-Goto->Header
    This will give you the data you need to use in the READ_TEXT F.M.

  • How to find out whether the transaction logs are being truncated or not

    Hi,
    We are using Veritas Backup tool for Backups and restores on our MS SQL 2000.
    One of our Veritas Tech has disabled the Truncation of Transaction Log Backup using the Job setup in Veritas. We want to confirm whether the Truncation is happening or not. I don't see any difference in the Transaction Log file size.
    How to find out whether truncation is active or not?
    Thanks
    Vijay

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • How to find out whether my Iphone 3Gs is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its OS to OS 5 even if my phone is "made" unlocked ? how to up gared its OS ? are there any better ways to do it ?

    How to find out whether my Iphone 3Gs (OS version 3.1.3) is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its current OS 3.1.3 to OS 5 even if my phone is not officlially unlocked ? how to up grade its OS ? what are there any better ways to do it ?
    Thanks,
    PRANAJ

    Depends wher you obtained the iPhone from and it's original supplier
    If the iPhone is an authorised unlock ( approved by the carrier) or was
    purchased from Apple as an unlocked iPhone  updating the iOS
    will have no effect on the iPhone and it's lock status
    HOWEVER if the software has been tampered with to remove the lock,
    updating the iOs will lock the iPhone back to the original carrier who holds the lock
    To find out the status of your iPhone  you could call Apple support
    and they may tell you if the iPhone is locked or not and if it is which carrier

  • How to find out whether it is shared Appl_top?

    How to find out whether it is shared Appl_top?

    Hi,
    In a Shared APPL_TOP installation, the APPL_TOP and the COMMON_TOP file systems are installed on a shared disk resource mounted to each node in the system. These nodes can be used to provide standard application tier services, such as Forms, Web, and Concurrent processing. Any changes made in the shared APPL_TOP file system are immediately visible on all nodes.
    Note that each node continues to have a separate Applications techstack installation.
    I have given the concept of shared Appl_TOP , so that you can understand "How to find out whether it is shared Apll_TOP".
    Hope, this will help you.

  • How to find out whether a program is running in Hyper-V virtual machine or not?

    If I want to make a program which only running in Hyper-V virtual machine, how can I find out whether
    the program is running in Hyper-V  virtual machine or not?

    https://gallery.technet.microsoft.com/scriptcenter/Determine-if-a-computer-is-cdd20473
    http://social.technet.microsoft.com/wiki/contents/articles/942.hyper-v-how-to-detect-if-a-computer-is-a-vm-using-script.aspx
    http://www.grouppolicy.biz/2014/01/how-to-target-group-policy-to-virtual-computers/
    Mike Crowley | MVP
    My Blog --
    Baseline Technologies

  • How to find out whether USER-EXIT is active or not

    Hello!
    How can I  find out whether USER-EXIT is active or not ?
    I set a break-point at these points and nothing happens
    if I want save my daocument ???
    Why
    PERFORM USEREXIT_SAVE_DOCUMENT.
    PERFORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    Ragards
    Ilhan

    Hi Ilhan
    The easiest way, I guess, is by going to transaction SMOD, sticking in your enhancement name and pressing the test button.
    When placing breakpoints, don't use <b>Breakpoints > Breakpoint at > Statement...</b> and enter
    PERFORM USEREXIT_SAVE_DOCUMENT
    because you won't get any hits since the function module names are stored dynamically.
    Rather use <b>Breakpoints > Breakpoint at > Function Module...</b> and enter
    USEREXIT_SAVE_DOCUMENT
    for a better chance of hitting the breakpoint.
    Cheers
    Lyal
    Message's terrible grammar was edited by:
            Lyal Schumann

  • How to find out whether material is tie to a BOM

    Hi everyone,
    I would like to know how do i find out whether a particular material is tied to BOM (as in is it part of a BOM structure)?

    Hi Bernard,
    You can use this FM <b>CS_WHERE_USED_MAT</b>.
    call function 'CS_WHERE_USED_MAT'
      exporting
       datub                      = sy-datum
       datuv                      = sy-datum
       matnr                      = wa_matnr
       werks                      = wa_werks
      importing
        topmat                     = i_topmat
      tables
        wultb                      = i_wultb
        equicat                    = i_equicat
        kndcat                     = i_kndcat
        matcat                     = i_matcat
        stdcat                     = i_stdcat
        tplcat                     = i_tplcat
      exceptions
        call_invalid               = 1
        material_not_found         = 2
        no_where_used_rec_found    = 3
        no_where_used_rec_selected = 4
        no_where_used_rec_valid    = 5
        others                     = 6.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Buying iPod touch – how to find out whether it is a box with FW 1.1.3?

    Hi,
    does anyone know from which serial number on the iPod touch 16 GB model does come with firmware 1.1.3 or higher from factory?
    How can I find out whether firmware 1.1.3 is shipped on a sealed iPod touch in retail stores? Want to buy in Germany.
    Cheers
    Marc

    Hey!
    Marc,
    this is APPL's post BTW......
    "If the model number ends in a "b" it's got them.
    It's on the bottom of the box below the serial number."
    So good luck!
    Cheers,
    John

Maybe you are looking for

  • Creative Zen 32gb: Music- Ge

    Hey guys, i have a question concerning the menu structure of ...Music/Genre: Zen arranges the *mp3's according to artists. However, having many compilations with various artists, this is a very uncomfortable way of arrangement. I'd prefer Zen to arra

  • Lightroom 3 super slow on new Windows 7 64 bit...Why?

    I've recently switched over to  Windows 7 64 bit Home Premium, running 8GB DDR3 RAM, 1GB ATI Radeon 4800  series video card, 1920px monitor and have found the performance in  Lightroom 3.4.1 much slower than I did on Windows XP, 32 bit running 2GB  o

  • How to Reverse COPA line item

    Hi, I have posted one manual line item in KE21N for COPA. There is a need to reverse this entry as it was done by mistake. Please give me some idea how to reverse this document. Thanks KB

  • Reportin on Smart Lists in FR Studio

    Hi there- I need to add some smart lists in a report and have no idea how to do it. I cant use planning as a data source because is all jacked! In the planning form the smart list have 6 different labels (product codes) that I need to pull into my re

  • Unknown USB Device in Windows - VISA does not see it

    Hello, I'm trying to connect my STM microcontroller to my computer using USB protocol and VISA software. When I plug STM USB device into USB port Windows sees it as unknown device and can not find any driver for it. I assume that this is situation VI