How to know vbsscript itself show state?

VBScript:
How to know vbs itself show state? (I mean showwindow)
I can use "run" to run a vbs with SW_HIDE(0), but how to let vbs know itself show state
DIM objShell
set objShell=wscript.createObject("wscript.shell")
iReturn=objShell.Run("Test.vbs", 0, TRUE)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx
For example, A vbscript run B vbscript, then how can the B vbscript know itselft show state? Hide,normal,minimized or maximized

Change:
iReturn=objShell.Run("Test.vbs",
0, TRUE)
To:
iReturn=objShell.Run("Test.vbs", i, TRUE)
¯\_(ツ)_/¯

Similar Messages

  • How to show States window??

    Hi,
    I am using Fireworks CS3 and I want to make a button with a rollOver feature but all the tutorials says I need to go t o 'states' but I dont know how to get to it. I have looked all through the Window tab at the top but cant find anything on states. If anyone could tell me how to get it to show up that would be appreciated a lot!
    Thanks in advance,
    MusicMan

    Window > Frames. Frames were renamed States in C4
    Jim Babbage

  • How to know my ipad is 4...y it shows only 13.6 gb in usage when i check in settings....my ipad is 16gb

    My Ipad has retina/wifi/cellular/16gb...but how to know its ipad4...because no were i see ipad4 (ipad box/website)...i agree it has lightning to usb but not mentioned on particulars...and also no 16gb is showed in usage when i checked in settings....how do come out of this ?

    If it has the Lightning port, it is an iPad 4. iPad 3rd gen and all below came with the 30-pin connector. If you want, post the model number and we will verify what it is exactly.
    Identify your iPad:
    http://support.apple.com/kb/HT5452

  • How to know stat file retention setting

    Hi,
    Wanted know where & which table or function module or report will give me stat file data retention period
    i have this function module "SAPWL_STATREC_READ_FILE" which read the data from stat file now want to know how will i get the setting for how many days of data be stat file will have?
    Regards,
    John

    Hi,
    Check the below function modules
    1. SAPWL_AS_WORKL_GET_PARAMETERS
    2. SAPWL_AS_WORKL_GET_STATISTIC
    3. SAPWL_GET_SUMMARY_STATISTIC
    4. SAPWL_STATCOL_GET_PROTOCOL
    Please also check the below function modules from the function group STUW.
    SAPWL_ACCNT_GET_DIRECTORY SAP Workload: Accounting Exit: Rückgabe d. Verzeichnises vorh. Statistiken
    SAPWL_ACCNT_GET_SYSTEM_USAGE SAP Workload: Accounting Exit: Rückgabe d. Systemauslastung d. Ben./Accnt.
    SAPWL_AS_ACCNT_GET_DIRECTORY SAP Workload: Rückgabe d. Verzeichnises vorh. Appl.-Statistiken
    SAPWL_AS_STATREC_READ_FILE SAP Workload: *VERALTET!!* Appl-Statistikdatei lesen
    SAPWL_AS_WORKL_ADD_TO_DB SAP Workload: Workload Statistik: Rohdaten zu Statis. hinzufg. & speichern
    SAPWL_AS_WORKL_ADD_TO_DB_CLOSE SAP Workload: AS Workload: Rohdaten hinzufg. abschliessen
    SAPWL_AS_WORKL_ADD_TO_DB_INIT SAP Workload: Workload: AS Initialisierung für Rohdaten hinz.fügen
    SAPWL_AS_WORKL_ADD_TO_SNAPSHOT SAP Workload: Workload Statistik: Rohdaten zu Workload-Snapshot hinzufügen
    SAPWL_AS_WORKL_GET_PARAMETERS SAP Workload: Statistik: Rückg. d. Kollektor-Parameter für Appl.St.
    SAPWL_AS_WORKL_GET_STATISTIC SAP Workload: Workload Statistik: Rückgabe der Anwendungsstatistik
    SAPWL_AS_WORKL_READ_AND_SAVE SAP Workload: *VERALTET*
    SAPWL_AS_WORKL_REBUILD_TOTAL SAP Workload: Workload Statistik: TOTAL-Server neu erzeugen
    SAPWL_AS_WORKL_REBUI_TOTAL_DAY SAP Workload: Appl.Statistik: TOTAL-Summe für einzelnen Tag erzeugen
    SAPWL_AS_WORKL_REBUI_WEEK_MON SAP Workload: Appl.Statistik: Wochen/Monatssumme anhand Tagessumme aktual.
    SAPWL_AS_WORKL_SAVE_STATISTIC SAP Workload: Workload Statistik: Speichern aller Statistiken
    SAPWL_AS_WORKL_VERIFY_REBUILD SAP Workload: Appl.Statistik: Verif.und Ausfuhren von "REBUILD" Massnahmen
    SAPWL_COLLECTOR_DEL_JOB_PROT SAP Workload: Kollektor: Lösche Jobprotokolle
    SAPWL_GET_SUMMARY_STATISTIC SAP Workload: Rückgabe einer Auswahl von Stastiken zur Workload
    SAPWL_SERVLIST_GET_LIST SAP Workload: Liste der aktiven Server: Lesen
    SAPWL_SERVLIST_UPD_LIST SAP Workload: Liste der aktiven Server: Aktualisieren
    SAPWL_STATCOL_GET_PROTOCOL SAP Workload: Statistic collector: Rückgabe des Protokolls
    SAPWL_STATCOL_SAVE_PROTOCOL SAP Workload: Statistic collector: Speichern des Protokolls
    SAPWL_STATREC_GET_ENTRY_ID SAP Workload: Statistic Records: Rückgabe der Tcode/Report-Kennung
    SAPWL_STATREC_READ_FILE SAP Workload: Statistikdatei lesen *VERALTET!!*
    SAPWL_TABSTAT_GET_DIRECTORY SAP Workload: Tabellenstatistik: Liste der vorhandenen Tabellenstatistiken
    SAPWL_TABSTAT_GET_STATISTIC SAP Workload: Tabellenstatistik: Rückg. d. Statistik (f. versch. Perioden)
    SAPWL_TABSTAT_SAVE_STATISTIC SAP Workload: Tabellenstatistik: Schreiben der Statistik
    SAPWL_TABSTAT_SINCE_STARTUP SAP Workload: Tabellenstatistik: Zugriffsstatistik seit Systemstart
    SAPWL_WORKLOAD_ADD_TO_DB SAP Workload: Workload Statistik: Rohdaten zu Statis. hinzufg. & speichern
    SAPWL_WORKLOAD_ADD_TO_DB_CLOSE SAP Workload: Workload Statistik: Rohdaten hinzufg. abschliessen
    SAPWL_WORKLOAD_ADD_TO_DB_INIT SAP Workload: Workload Statistik: Initialisierung für Rohdaten hinz.fügen
    SAPWL_WORKLOAD_ADD_TO_SNAPSHOT SAP Workload: Workload Statistik: Rohdaten zu Workload-Snapshot hinzufügen
    SAPWL_WORKLOAD_CHECKRESET_MONI SAP Workload: Zugriffe auf MONI prüfen und fehlerhafte Tabellen löschen
    SAPWL_WORKLOAD_GET_DETAILTCOD SAP Workload: Workload Statistik: Rückgabe der Transaktionsdetail-Stat
    SAPWL_WORKLOAD_GET_DETTCOD_DIR SAP Workload: Workload Statistik: Inhaltsverzeichnis TCODE-Detailauswertng
    SAPWL_WORKLOAD_GET_DIRECTORY SAP Workload: Workload Statistik: Rückg. d. Inhaltsverz. verfügbarer Daten
    SAPWL_WORKLOAD_GET_PARAMETERS SAP Workload: Workload Statistik: Rückg. d. Workload-(Re)Organisationspar.
    SAPWL_WORKLOAD_GET_PLATFORM_ID SAP Workload: Workload Statistik: Rückgabe der Plattform-Identifikation
    SAPWL_WORKLOAD_GET_STATISTIC SAP Workload: Workload Statistik: Rückgabe aller Statistiken
    SAPWL_WORKLOAD_GET_SUMMARY SAP Workload: Workload Statistik: Rückgabe der tasktypabh. Zusammenfassung
    SAPWL_WORKLOAD_NAME_LENGTHS SAP Workload: Workload Statistik: Laenge von Objektnamen
    SAPWL_WORKLOAD_REBUILD_TOTAL SAP Workload: Workload Statistik: TOTAL-Server neu erzeugen
    SAPWL_WORKLOAD_REBUI_TOTAL_DAY SAP Workload: TOTAL-Summe für kompletten einzelnen Tag erzegen
    SAPWL_WORKLOAD_REBUI_TOTL_DWM SAP Workload: TOTAL-Server für TAG/WOCHE/MONAT neu erzeugen
    SAPWL_WORKLOAD_REBUI_WEEK_MON SAP Workload: Wochen/Monats Summen anhand der Tagessummen aktualisieren
    SAPWL_WORKLOAD_REORG SAP Workload: Workload Statistik: Performance DB Reorganisation
    SAPWL_WORKLOAD_SAVE_DETAILTCOD SAP Workload: Workload Statistik: Speichern d. tasktypabh. Zusammenfassung
    SAPWL_WORKLOAD_SAVE_PARAMETERS SAP Workload: Workload Statistik: Speichern d. Workld-(Re)Organisationsp.
    SAPWL_WORKLOAD_SAVE_STATISTIC SAP Workload: Workload Statistik: Speichern aller Statistiken
    SAPWL_WORKLOAD_SAVE_SUMMARY SAP Workload: Workload Statistik: Speichern d. tasktypabh. Zusammenfassung
    SAPWL_WORKLOAD_TRUNCATE_NAME SAP Workload: Workload Statistik: Verkürze Objektnamen
    SAPWL_WORKLOAD_VERIFY_REBUILD SAP Workload: Ermitteln und Ausführen von "REBUILD" Massnahmen
    SAPWL_WORKL_PARALLEL_COLLECTOR SAP Workload: Baustein fur parallelen Workload-Kollektor entspr. RSSTAT80
    SAPWL_WORKL_PARAL_AS_COLLECTOR SAP Workload: Baustein für paral. Appl.Workl.-Kollektor entspr. RSSTAT89
    Thanks,
    Ramakrishna

  • How to know last statements

    Hi All,
    How can i know, what are the statements have run on yesterday in my database for a particular user?
    Thanks
    Desis

    You need to write your own triggers to capoture the DDL and also insert those DDL into your tables. This way you may able to track down users activities including DDL.
    hare krishna
    Alok

  • How to know the select statement perfomence

    how to know the select statement perfomence. suppose i have 10 select statements in my program. how will i know which select statement not performance wise poor.

    Go to ST04/
    Click on Detail Analysis menu button.
    Click on the SQL Request button.
    In the pup up give <table name> and execute.
    Then you will get a list of all the programs that have a select on that table.
    Or ST05 transaction t start the trace and run your program .Deactivate the trace in st05 .
    and display the trace.
    Regards,
    Ravi

  • HT3939 how to know the carrier for iphone 5 if its showing activation failed please insert a sim card

    how to know the carrier of iphone 5 if its showing activation failed please insert a sim card and i don't know what sim card goes in it and if it is cdma or gsm.
    i stuck on this step. i can't go further it just shows imei and meid number but iccid is displayed unknown. please help me to move further. thank u.

    contact apple.

  • How to know when the JComboBox popup is about to show or hide?

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

  • How to know if there is a web threat on my computer?

    How to know if there is a web threat on my computer.
    Two days ago I was trying to view a page that I always see with no problem but I got a messages from Intego Virusbarrier saying that safari was attempting to download known malware that could control my computer. I didn't understand, it was a common designers website that I had always visited with no problem. The message had a counter with the option of proceeding or blocking. I blocked. I have both safari and chrome installed so I decided to check the site in chrome, again with the same window. I let it be, but the following morning as a tried one more time safari didn't show me the warning window, instead it took me to a blank page that wouldn't load. All of the programs froze and my mouse arrow started to move a little sporadically, nothing would work properly. I finally had to unplug my computer. after a while i plugged it back in and everything seemed to be working fine. I had virusBarrier scan my entire computer but it found nothing wrong. I checked my download folder and utilities and plugins and found nothing odd. all seemed fine, But this morning it started again. My computer wouldn't respond properly and I had to unplug it again. After I replugged all seemed to work fine, except safari, which wouldn't do anything. I disabled all plugins and it sort of worked but the problem is when I tried to reset safari, it makes safari stop working. Chrome seems to be fine. Virusbarrier, (which supposedly instigated the alleged malware warnings) still can't find anything wrong. But I have noticed that virusbarrier wont lock itself. every time i turn my computer off or put it to sleep it will unlock the ability to configure setting when it wakes.
    I don't know if it is virusbarrier or safari or something else, but i believe that come tomorrow it will continue to happen. I've tried and checked every folder and still can't find anything that shouldn't be there. The main problem I have is that its my whole computer, not just safari that freezes and acts up. I use airport and have to manually connect to the Internet each time I log in, so I don't understand how each morning this seems to be happening, because I'm not connected to the Internet when the computer is off.
    update: no, safari doesn't work at all anymore.
    mac is version 10.5.8
    safari 5.0.5

    One sure fireway to invite problems on a Mac is to install a/v software.
    Barry and rkaufmann87  are trying to give you excellent advice.
    If it were me, I'd backup my important files then erase the drive and start over. Anti virus software on a Mac is invasive and hard to uninstall properly.
    Since you are running v10.5, an Archive & Install won't do the job. You'll still have the previous System Folder on the drive. Clean install only.
    See: Erase & Install here > Installing Mac OS X 10.5 Leopard

  • How to know whether any item value got changed

    How to know in Apex whether any form item got changed. That will help me to know when the user will be pressing the "Apply Changes" button and I will popuplate the "User Modifed" and "Date Modifed" column values in the table. For now, I dont want to write database triggers, but to implement it at application level.

    Hi Deb
    For a really good explanation of the naming /numbering of tabular form items see Patrick Wolf's blog on the matter.
    http://www.inside-oracle-apex.com/which-tabular-form-column-is-mapped-to-which-apex_applicationg_fxx-array/
    He also gives a simple example of using check-boxes in tabular forms here
    http://www.inside-oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/
    You will notice in his example, that the apex_application.g_f40 is specifically named as 40 - a high number assuming that you don't have more than 39 editable columns in you tabular form - shown in the name="f40" code.
    <input type="checkbox" #ADMIN_USER_CHECKBOX# value="#ROWNUM#" name="f40" id="f40_#ROWNUM#"/>#ADMIN_USER_CHECKBOX#
    In essence the columns are numbered (only the editable ones) in the order in which they appear in the select statement - so the first editable column will be f(01), next f(02) etc - except where the column is specifically named - in this case f(40).
    I had a situation where I wanted to programatically stamp the user's name into a column depending on whether the user checked a check-box in each row.
    But if the column is editable and visible, then the user is free to type into this cell - this I wanted to avoid.
    Something that took me a while to work out is that you can hide an editable column - so it can updated by your procedure code - not by the user!
    The way to solve this is to have the sql statement select the relevant column twice - the first one is the editable one and hidden, and the second copy is a normal report column - displayed but not editable.
    I used Patrick's example in the link above to set up my tabular form with the first column as a check-box.
    The user then marks the desired rows by clicking in the check-box and submits / saves.
    The procedure then detects which rows have been checked - updates the editable (but hidden) database column, and then re-displays the result - with the second copy of the same column now showing the updated value!
    I hope this helps.
    Look at Patrick's other postings - they are so helpful.
    Mike

  • How to utilize index in selection statement

    hi
    how to utilize index in selection statement and how is it reduces performance whether another alternative is there to reduce performance .
    thanks

    Hi Suresh,
    For each SQL statement, the database optimizer determines the strategy for accessing data records. Access can be with database indexes (index access), or without database indexes (full table scan).The cost-based database optimizer determines the access strategy on the basis of:
    *Conditions in the WHERE clause of the SQL statement
    *Database indexes of the table(s) affected
    *Selectivity of the table fields contained in the database indexes
    *Size of the table(s) affected
    *The table and index statistics supply information about the selectivity of table fields, the selectivity of combinations of table fields, and table size.     Before a database access is performed, the database optimizer cannot calculate the exact cost of a database access. It uses the information described above to estimate the cost of the database access.The optimization calculation is the amount by which the data blocks to be read (logical read accesses) can be reduced. Data blocks show the level of detail in which data is written to the hard disk or read from the hard disk.
    <b>Inroduction to Database Indexes</b>
    When you create a database table in the ABAP Dictionary, you must specify the combination of fields that enable an entry within the table to be clearly identified. Position these fields at the top of the table field list, and define them as key fields.
    After activating the table, an index is created (for Oracle, Informix, DB2) that consists of all key fields. This index is called a primary index. The primary index is unique by definition. As well as the primary index, you can define one or more secondary indexes for a table in the ABAP Dictionary, and create them on the database. Secondary indexes can be unique or non-unique. Index records and table records are organized in data blocks.
    If you dispatch an SQL statement from an ABAP program to the database, the program searches for the data records requested either in the database table itself (full table scan) or by using an index (index unique scan or index range scan). If all fields requested are found in the index using an index scan, the table records do not need to be accessed.
    A data block shows the level of detail in which data is written to the hard disk or read from the hard disk. Data blocks may contain multiple data records, but a single data record may be spread across several data blocks.
    Data blocks can be index blocks or table blocks. The database organizes the index blocks in the form of a multi-level B* tree. There is a single index block at root level, which contains pointers to the index blocks at branch level. The branch blocks contain either some of the index fields and pointers to index blocks at leaf level, or all index fields and a pointer to the table records organized in table blocks. The index blocks at leaf level contain all index fields and pointers to the table records from the table blocks.
    The pointer that identifies one or more table records has a specific name. It is called, for example, ROWID for Oracle databases. The ROWID consists of the number of the database file, the number of the table block, and the row number within the table block.
    The index records are stored in the index tree and sorted according to index field. This enables accelerated access using the index. The table records in the table blocks are not sorted.
    An index should not consist of too many fields. Having a few very selective fields increases the chance of reusability, and reduces the chance of the database optimizer selecting an unsuitable access path.
    <b>Index Unique Scan</b>
    If, for all fields in a unique index (primary index or unique secondary index), WHERE conditions are specified with '=' in the WHERE clause, the database optimizer selects the access strategy index unique scan.
    For the index unique scan access strategy, the database usually needs to read a maximum of four data blocks (three index blocks and one table block) to access the table record.
    <b><i>select * from VVBAK here vbeln = '00123' ......end select.</i></b>
    In the SELECT statement shown above, the table VVBAK is accessed. The fields MANDT and VBELN form the primary key, and are specified with '=' in the WHERE clause. The database optimizer therefore selects the index unique scan access strategy, and only needs to read four data blocks to find the table record requested.
    <b>Index Range Scan</b>
    <b><i>select * from VVBAP here vbeln = '00123' ......end select.</i></b>
    In the example above, not all fields in the primary index of the table VVBAP (key fields MANDT, VBELN, POSNR) are specified with '=' in the WHERE clause. The database optimizer checks a range of index records and deduces the table records from these index records. This access strategy is called an index range scan.
    To execute the SQL statement, the DBMS first reads a root block (1) and a branch block (2). The branch block contains pointers to two leaf blocks (3 and 4). In order to find the index records that fulfill the criteria in the WHERE clause of the SQL statement, the DBMS searches through these leaf blocks sequentially. The index records found point to the table records within the table blocks (5 and 6).
    If index records from different index blocks point to the same table block, this table block must be read more than once. In the example above, an index record from index block 3 and an index record from index block 4 point to table records in table block 5. This table block must therefore be read twice. In total, seven data blocks (four index blocks and three table blocks) are read.
    The index search string is determined by the concatenation of the WHERE conditions for the fields contained in the index. To ensure that as few index blocks as possible are checked, the index search string should be specified starting from the left, without placeholders ('_' or %). Because the index is stored and sorted according to the index fields, a connected range of index records can be checked, and fewer index blocks need to be read.
    All index blocks and table blocks read during an index range scan are stored in the data buffer at the top of a LRU (least recently used) list. This can lead to many other data blocks being forced out of the data buffer. Consequently, more physical read accesses become necessary when other SQL statements are executed
    <b>DB Indexex :Concatenation</b>
         In the concatenation access strategy, one index is reused. Therefore, various index search strings also exist. An index unique scan or an index range scan can be performed for the various index search strings. Duplicate entries in the results set are filtered out when the search results are concatenated.
    <i><b>Select * from vvbap where vbeln in ('00123', '00133', '00134').
    endselect.</b></i>
    In the SQL statement above, a WHERE condition with an IN operation is specified over field VBELN. The fields MANDT and VBELN are shown on the left of the primary index. Various index search strings are created, and an index range scan is performed over the primary index for each index search string. Finally, the result is concatenated.
    <b>Full Table Scan</b>
    <b><i>select * from vvbap where matnr = '00015'.
    endselect</i></b>
    If the database optimizer selects the full table scan access strategy, the table is read sequentially. Index blocks do not need to be read.
    For a full table scan, the read table blocks are added to the end of an LRU list. Therefore, no data blocks are forced out of the data buffer. As a result, in order to process a full table scan, comparatively little memory space is required within the data buffer.
    The full table scan access strategy is very effective if a large part of a table (for example, 5% of all table records) needs to be read. In the example above, a full table scan is more efficient than access using the primary index.
    <i><b>In Brief</b></i>
    <i>Index unique scan:</i> The index selected is unique (primary index or unique secondary index) and fully specified. One or no table record is returned. This type of access is very effective, because a maximum of four data blocks needs to be read.
    <i>Index range scan:</i> The index selected is unique or non-unique. For a non-unique index, this means that not all index fields are specified in the WHERE clause. A range of the index is read and checked. An index range scan may not be as effective as a full table scan. The table records returned can range from none to all.
    <i>Full table scan:</i> The whole table is read sequentially. Each table block is read once. Since no index is used, no index blocks are read. The table records returned can range from none to all.
    <i>Concatenation:</i> An index is used more than once. Various areas of the index are read and checked. To ensure that the application receives each table record only once, the search results are concatenated to eliminate duplicate entries. The table records returned can range from none to all.
    Regards,
    Balaji Reddy G
    ***Rewards if answers are helpful

  • [Beginer] How can I have follow the stat of rsync

    Dear All,
    I working hard to make my firts backup script with Apple script.
    I have a rsync command which copy the file from a place toenother one.
    While the rsync process is running, I would like to have the % of the process in order to let the user to know where is the state.
    Is there a way to do it and how?
    I can use somethink else than rsync, but be aware that I ahev to use smb protocole because my data are synchronized from Apple to Linux or Windows server.
    Any suggestion?
    Cheers
    Pierre

    There's no direct way to get the progress of your rsync command - once AppleScript calls the do shell script command it has no visibility into what that command is doing until it's finished.
    There is one workaroud, but it takes some effort. You can execute the shell command in the background - this passes control back to your AppleScript while the shell command is still running. In addition, you can redirect the output of the shell command to a file and your AppleScript can read that file to determine the progress of the command. It's not trivial to do, but it's about the only option you have.
    -- run the command
    set thePID to do shell script "/path/to/lengthy/process &> /var/tmp/my.out & echo $!"
    -- grab its ID
    set processIsRunning to true
    -- repeat while it's running
    repeat until processIsRunning is false
              tell application "System Events"
                        try
      -- if this works, the process is still running
                                  do shell script "ps -p " & thePID
      -- so grab the last line of the output file
                                  set progress to last paragraph of (read POSIX file "/private/var/tmp/my.out")
                        on error
      -- if we get here the process isn't running, so clean up
                                  set processIsRunning to false
                                  do shell script "rm /var/tmp/my.out"
                        end try
              end tell
      -- show the output
      display dialog progress
    end repeat

  • How to find list of pending statements ????

    How to find list of pending statements ? I want to show a report using SALV_WD_TABLE component for providing basic ALV features like sorting, filtering, exporting to excel sheet. ?

    Aisurya Kumar Puhan wrote:
    Hi kris,
    > No not any standard component using for this.. I need  only to know in which tables i can find these.....
    >
    > Thkx
    > Aisurya.
    You need to elaborate your requirement.
    this is not leading anywhere.
    thanks
    sarbjeet singh

  • How to know the the list of tables with no rows inside a schema?

    with reference to
    http://www.ss64.com/orad/USER_TABLES.html
    How to know the the list of tables with no rows inside a schema?
    I try this select table_name from user_tables where num_rows=0;
    I can found one table that is empty.
    So what's the query to return list of tables in a schema which has no rows?
    thanks

    You can do that only if your have collected the stats properly. Otherwise its going to show you wrong information.
    Check this out...
    SQL> drop table t
      2  /
    Table dropped.
    SQL> create table t
      2  as
      3  select level no from dual connect by level <=100
      4  /
    Table created.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T
    SQL> begin
      2      dbms_stats.gather_table_stats(user,'T');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T                                     100
    SQL>Thanks,
    Karthick.

  • The demodulation method - how to know

    Hello,
    I have a general question, not about the code itself.
    I measure a signal with a sample rate (now it doesn't matter, which one exactly). I have got a series of numbers, which is my signal in the exact time points. Then I use Extract Single Tone Information.vi  and can get the amplitude of my signal (and frequency, and phase). If the sample rate is matched with signal frequency, I expect to get the right result. It's the procedure.
    I can suppose for sure, that Extract Single Tone Information.vi implements the demodulation.
    The question - what demodulation method does it use? I can assume, of course, but how to know it exactly. I mean, if I can get some results and somebody asks me, how they have been got, I can't say something like "I don't know, it is just system shows it." (it is important to me, because we use DAQ board in scientific area)
    I don't need the code of this vi (I don't neeed, of course, the commercial secrets), but can I know the ideas and methods?
    Thank you in advance.
    Anna

    Anna,
    You have asked an important question, one which too often is not asked.
    The first place to look for information is the help files. For many VIs the detailed help describes the algorithm used. Unfortunately, the Extract Single Tone Information.vi help file does not have this information.
    Next, open the diagram and look at the code. In most of the VIs provided with LV by NI, the code is not secret. If you do this you will find that the VI uses a Hanning Window and a standard FFT, both of which have formulas or algorithms listed in the help.
    These are not demodulation functions although you can get some information about modulation types from the spectrum. The Single Tone VI will not give any modulation information because it is designed to look at only one frequency. If you need to analyze a modulated signal, other tools than the Single Tone VI will need to be used.
    Lynn

Maybe you are looking for