How to Read DVD using ioctl call

I used the ioctl call DKIOCCDREAD to read the CD content. Is any ioctl call to read the DVD content?
If not, How can I read the DVD content in the MAC 10.5.8?

I used the ioctl call DKIOCCDREAD to read the CD content. Is any ioctl call to read the DVD content?
If not, How can I read the DVD content in the MAC 10.5.8?

Similar Messages

  • How to read response from WebService call

    Hi,
    I am consuming webservices in ABAP. I got proxy classes created. Port is also created.
    I am calling classes generated by proxy in ABAP. Classes creates few structure by system. when i make a call to service, I am not getting importing values in veariables declared. Trace file (in SOAMANAGER ) shows call successful & XML file shows the correct response values, but are not appearing in program variables. I declared variables of same type generated by system.
    My question is, am I missing any step.configuration? or how to read the variables?
    Thanks in advance.
    Sunil

    You coud create a procedure like this:
    CREATE OR REPLACE PROCEDURE soap_env_pr (p_soap_env IN VARCHAR2)
    IS
       v_start     NUMBER;
       v_end       NUMBER;
       v_message   VARCHAR2 (400);
       v_length    NUMBER;
    BEGIN
       v_start := INSTR (p_soap_env, '<ns0:Ok>');
       v_length := LENGTH ('<ns0:Ok>');
       v_end := INSTR (p_soap_env, '</ns0:Ok>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('Ok: ' || v_message);
       v_start := INSTR (p_soap_env, '<ns0:SessionNumber>');
       v_length := LENGTH ('<ns0:SessionNumber>');
       v_end := INSTR (p_soap_env, '</ns0:SessionNumber>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('SessionNumber: ' || v_message);
       v_start := INSTR (p_soap_env, '<ns0:ErrorMessage>');
       v_length := LENGTH ('v_length');
       v_end := INSTR (p_soap_env, '</ns0:ErrorMessage/>');
       v_message :=
              SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
       HTP.prn ('ErrorMessage: ' || v_message);
    END;and call it like this:
    BEGIN
       soap_env_pr
          ('<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
    <env:Body>
    * <invokeScenarioResponse xmlns:ns0="xmlns.oracle.com/odi/OdiInvoke/" xmlns="xmlns.oracle.com/odi/OdiInvoke/">*
    * <ns0:Ok>true</ns0:Ok>*
    * <ns0:SessionNumber>2223201</ns0:SessionNumber>*
    * <ns0:ErrorMessage/>*
    * </invokeScenarioResponse>*
    </env:Body>
    </env:Envelope>'
    END;That would give you this output:
    Ok: true
    SessionNumber: 2223201
    ErrorMessage:Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • HOW to read file using ftp???

    Hi to all,
    I have problem with reading file using ftp connection, i want to read only 1024 bytes for one time, and i have
    next code wich read this:
    byte buffer[] = new byte[1024];
    while( (readCount = input.read(buffer)) > 0) {
    bos.write(buffer, 0, readCount);
    but I dont know how to put all read data in one byte[] if i dont know length of file.
    I can't do some like: byte file[] = new file[1000000];
    Thanks for all sugestions!

          * Download a file from a FTP server. A FTP URL is generated with the following syntax:
         * <code>ftp://user:password@host:port/filePath;type=i</code>.
          * @param ftpServer FTP server address (incl. optional port ':portNumber').
          * @param user Optional user name to login.
          * @param pwd Optional password for <i>user</i>.
          * @param fileName Name of file to download (with optional preceeding relative path, e.g. one/two/three.txt).
          * @param destination Destination file to save.
         * @throws MalformedURLException, IOException on error.
         public void download(String ftpServer, String user, String pwd, String fileName, File destination) throws MalformedURLException, IOException {
            if (ftpServer != null && fileName != null && destination != null) {
                StringBuffer sb = new StringBuffer("ftp://");
                if (user != null && pwd != null) { //need authentication?
                    sb.append(user);
                    sb.append(':');
                    sb.append(pwd);
                    sb.append('@');
                }//else: anonymous access
                sb.append(ftpServer);
                sb.append('/');
                sb.append(fileName);
                sb.append(";type=i"); //a=ASCII mode, i=image (binary) mode, d= file directory listing
                BufferedInputStream bis = null;
                BufferedOutputStream bos = null;
                try {
                    URL url = new URL(sb.toString());
                    URLConnection urlc = url.openConnection();
                    bis = new BufferedInputStream(urlc.getInputStream());
                    bos = new BufferedOutputStream(new FileOutputStream(destination.getName()));
                    int i;
                    while ((i = bis.read()) != -1) { //read next byte until end of stream
                        bos.write(i);
                    }//next byte
                } finally {
                    if (bis != null) try { bis.close(); } catch (IOException ioe) { /* ignore*/ }
                    if (bos != null) try { bos.close(); } catch (IOException ioe) { /* ignore*/ }
            }//else: input unavailable
        }//download()If you don't want to strore the data into a file, use ByteArrayOutputStream instead of a FileOutputStream.

  • How to read OVD using java

    Hi all,
    how to access OVD using Java?
    Thanks,
    Kumar.P

    Hi,
    You can just normal LDAP API codes to connect to OVD the same way you connect to other LDAP servers.
    PFB sample code for connecting to OVD.
    Properties props = new Properties();
    try {
    props.load(new FileInputStream("LdapCredentials.Properties"));
    } catch (IOException e) {
    // TODO
    ldapurl = "ldap://hostname:390";
    ldapUser = "cn=orcladmin,ou=Org12,dc=ovid,dc=com";
    userPassword = "welcome1"; //"Killtheking123456";
    userContext = "ou=Join1,dc=ovid,dc=com";
    Now, you have to get Directory Context as shown below.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, ldapurl);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    //Initialize the Directory context
    DirContext dCtx = new InitialDirContext(env);
    Then you can perform search operations or new user creation etc., as you wish.
    Does this help?
    -Mahendra.

  • How to read data using SQLGetData from a block, forward-only cursor (ODBC)

    Hi there.  I am trying to read data a small number of rows of data from either a Microsoft Access or Microsoft SQL Server (whichever is being used) as quickly as possible.  I have connected to the database using the ODBC API's and have run a select
    statement using a forward-only, read-only cursor.  I can use either SQLFetch or SQLExtendedFetch (with a rowset size of 1) to retrieve each successive row and then use SQLGetData to retrieve the data from each column into my local variables.  This
    all works fine.
    My goal is to see if I can improve performance incrementally by using SQLExtendedFetch with a rowset size greater than 1 (block cursor).  However, I cannot figure out how to move to the first of the rowset returned so that I can call SQLGetData to retrieve
    each column.  If I were using a cursor type that was not forward-only, I would use SQLSetPos to do this.  However, using those other cursor types are slower and the whole point of the exercise is to see how fast I can read this data.  I can
    successfully read the data using a block forward only cursor if I bind each column to an array in advance of the call to SQLExtendedFetch.  However, that has several drawbacks and is documented to be slower for small numbers of rows.  I really
    want to see what kind of speed I can achieve using a block, forward-only, read-only cursor using SQLGetData to get each column.
    Here is the test stub that I created:
    ' Create a SELECT statement to retrieve the entire collection.
    selectString = "SELECT [Year] FROM REAssessmentRolls"
    ' Create a result set using the existing read/write connection. The read/write connection is used rather than
    ' the read-only connection because it will reflect the most recent changes made to the database by this running
    ' instance of the application without having to call RefreshReadCache.
    If (clsODBCDatabase.HandleDbcError(SQLAllocStmt(gDatabase.ReadWriteDbc, selectStmt), gDatabase.ReadWriteDbc, errorBoxTitle) <> enumODBCSQLAPIResult.SQL_SUCCESS) Then
    GoTo LoadExit
    End If
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_CONCURRENCY, SQL_CONCUR_READ_ONLY), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_CURSOR_TYPE, SQL_CURSOR_FORWARD_ONLY), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_ROWSET_SIZE, MAX_ROWSET_SIZE), selectStmt, errorBoxTitle)
    If (clsODBCDatabase.HandleStmtError(SQLExecDirect(selectStmt, selectString, Len(selectString)), selectStmt, errorBoxTitle) <> enumODBCSQLAPIResult.SQL_SUCCESS) Then
    GoTo LoadExit
    End If
    ' Cursor through result set. Each time we fetch data we get a SET of rows.
    sqlResult = clsODBCDatabase.HandleStmtError(SQLExtendedFetch(selectStmt, SQL_FETCH_NEXT, 0, rowsFetched, rowStatus(0)), selectStmt, errorBoxTitle)
    Do While (sqlResult = enumODBCSQLAPIResult.SQL_SUCCESS)
    ' Read all rows in the row set
    For row = 1 To rowsFetched
    If rowStatus(row - 1) = SQL_ROW_SUCCESS Then
    sqlResult = clsODBCDatabase.HandleStmtError(SQLSetPos(selectStmt, row, SQL_POSITION, SQL_LOCK_NO_CHANGE), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.SQLGetShortField(selectStmt, 1, assessmentRollYear(row - 1))
    Console.WriteLine(assessmentRollYear(row - 1).ToString)
    End If
    Next
    ' If the rowset we just retrieved contains the maximum number of rows allowed, there could be more data.
    If rowsFetched = MAX_ROWSET_SIZE Then ' there could be more data
    sqlResult = clsODBCDatabase.HandleStmtError(SQLExtendedFetch(selectStmt, SQL_FETCH_NEXT, 0, rowsFetched, rowStatus(0)), selectStmt, errorBoxTitle)
    Else
    Exit Do ' no more rowsets
    End If
    Loop ' Do While (sqlResult = enumODBCSQLAPIResult.SQL_SUCCESS)
    The test fails on the call to SQLSetPos.  The error message I get is "Invalid cursor position; no keyset defined".  I have tried passing SET_POSITION and also SET_REFRESH.  Same error.  There has to be a way to do this!
    Thank you for your help!
    Thank You! - Andy

    Hi Apelkey,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to read XML using vbscript

    hi friends I have A big XML having following format :
    <ECSC>
    <ATTRIBUTES>
    <ETTOOLNAME>ECATT</ETTOOLNAME>
    <ETOBJ_GNDT>
    <VERSION>00000001</VERSION>
    <TWB_TITLE>TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x</TWB_TITLE>
    <TWB_STATUS>X</TWB_STATUS>
    <TWB_RELE>N</TWB_RELE>
    <FUSER>ECATT</FUSER>
    <FDATE>2014-05-22</FDATE>
    <LUSER>ECATT</LUSER>
    <LDATE>2014-05-22</LDATE>
    <LTIME>13:59:50</LTIME>
    </ETOBJ_GNDT>
    <ETOBJNOVER>
    <NAME>ZX_FI_FP_0569_MS07_COAS_FB01</NAME>
    <TYPE>ECSC</TYPE>
    <TWB_RESP>ECATT</TWB_RESP>
    <TWB_DISTL>B</TWB_DISTL>
    <DEVCLASS>Z_SOL_ONEERP</DEVCLASS>
    <MASTERLANG>E</MASTERLANG>
    <TADIR_RESP>ECATT</TADIR_RESP>
    <FRANGE>BC</FRANGE>
    </ETOBJNOVER>
    <ETOBJ_DOC>
    <SEARCH_1>FI_FP_FI_0569_MS07</SEARCH_1>
    <SEARCH_2>COAS</SEARCH_2>
    <SEARCH_3>KO03</SEARCH_3>
    </ETOBJ_DOC>
    <ETOBJ_CNST>
    <TWB_WKREQ>0.000</TWB_WKREQ>
    <TWB_PRIO>3</TWB_PRIO>
    </ETOBJ_CNST>
    <ETSC_TSYS>
    <SYSTEMDATA>Z_SD_1ERP_Z</SYSTEMDATA>
    <TESTSYSTEM>FI_TRUSTED_EN</TESTSYSTEM>
    </ETSC_TSYS>
    <ETSYS_COMP_TABTYPE/>
    <ETSYS_REL_TABTYPE/>
    </ATTRIBUTES>
    <SCRIPT>
    <ETXML_LINE_TABTYPE>
    <item>***********************************************************************.</item>
    <item>* Information.</item>
    <item>**********************************************************************.</item>
    <item>* Script for test case 'TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x'</item>
    <item>*</item>
    <item>* For Sub script:</item>
    <item>*  'Test case 3: Choose an Internal Order in One.Fi using external order number while transaction posting (positive case)'.</item>
    <item>*</item>
    <item>* Script is to Display Internal Order using external order number while Transaction Posting 'FB01'</item>
    <item>* GETTAB command is being used to fetch the data from table 'COAS'.</item>
    <item>*</item>
    <item>*</item>
    <item>*     Test data related Information</item>
    <item>*     -----------------------------</item>
    <item>* Default test data present in parameter list has been used while Scripting ( script recording &amp; Performing Checks ).</item>
    <item>*</item>
    <item>* Final execution of result log: 0000037077.</item>
    <item>*</item>
    <item>***********************************************************************.</item>
    <item>* Preparation.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* End Preparation.</item>
    <item>************************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Execution.</item>
    <item>***********************************************************************.</item>
    <item>* To get the 'Table Entries' from table 'COAS'.</item>
    <item>  GETTAB ( COAS , COAS_1 ).</item>
    <item>* To display the value for the field 'External Order No'.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FRM_TABL ).</item>
    <item/>
    <item>*----------------------Posting(FB01)-------------------------------------------*.</item>
    <item/>
    <item>* This part of Script is to Display Internal Order using external order number while Transaction Posting 'FB01'.</item>
    <item>MESSAGE ( MSG_1 ).</item>
    <item>* To get the name of the Title Screen.</item>
    <item>  GETGUI ( FB01_100_STEP_1 ).</item>
    <item>* Enter the Required details and Press Enter.</item>
    <item>  SAPGUI ( FB01_100_STEP_2 ).</item>
    <item>* Enter Amount and Tax Code.</item>
    <item>* and, Press F4 help in the Order Field.</item>
    <item>  SAPGUI ( FB01_300_STEP_1 ).</item>
    <item>* In F4 screen, enter the 'External Order Number'</item>
    <item>* pop-up screen is displayed with entries like Order, Description and External Order Number and select 1st order row, press Enter.</item>
    <item>  SAPGUI ( FB01_200_STEP_1 ).</item>
    <item>* To get the values for the field 'Order, Description and External Order No' from F4 help.</item>
    <item>  GETGUI ( FB01_120_STEP_1 ).</item>
    <item>  SAPGUI ( FB01_120_STEP_3 ).</item>
    <item>* To get the value for the field 'Order' from Main screen.</item>
    <item>  GETGUI ( FB01_300_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_300_STEP_3 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_700_STEP_1 ).</item>
    <item>* click 'Yes' button.</item>
    <item>  SAPGUI ( FB01_200_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_100_STEP_3 ).</item>
    <item>ENDMESSAGE ( E_MSG_1 ).</item>
    <item/>
    <item>* To display the Title Screen.</item>
    <item>  LOG ( V_TITLE_SCREEN ).</item>
    <item>* To display the 'Order' Number from F4 help.</item>
    <item>  LOG ( V_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Description' from F4 help.</item>
    <item>  LOG ( V_DESCRIPTION_FROM_F4).</item>
    <item>* To display the 'External Order no' value from F4 help.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Order' Number from main screen.</item>
    <item>  LOG ( V_ORDER_NO_FRM_MAIN_SCREEN ).</item>
    <item>************************************************************************.</item>
    <item>* End Execution.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Check.</item>
    <item>***********************************************************************.</item>
    <item>* To check name of Title screen for transaction FB01.</item>
    <item>  CHEVAR ( V_TITLE_SCREEN = I_TITLE_SCREEN ).</item>
    <item>* To check the value for the field 'External Order No' from F4 help, which should be equal to 'External Order No' from table.</item>
    <item>  CHEVAR ( V_EXTERNAL_ORDER_NO_FRM_TABL = V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To check the values for the field 'Order' number from Table, which should be equal to 'Order' no from F4 screen and Main screen.</item>
    <item>  CHEVAR ( ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FROM_F4 ) AND ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FRM_MAIN_SCREEN )).</item>
    <item>************************************************************************.</item>
    <item>* End Check.</item>
    <item>************************************************************************.</item>
    </ETXML_LINE_TABTYPE>
    </SCRIPT>
    <PARAMETERS>
                     <ETPAR_GUIX>
    <item>
    <PNAME>COAS_1</PNAME>
    <PTYP>X</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>GETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                              </item>
    <item>
    <PNAME>IOAS_1</PNAME>
    <PTYP>I</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>IETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                            </item>
     </ETPAR_GUIX>
    </PARAMETERS>
    </ECSC>
    I want to write vbscript for above XML file. Vbscript should display following result :
    1) It should validate <SCRIPT> node The line staring with * symbol is called comment and the line staring without * symbol is call code in above XML file.
    2) Vb Script should display such line numbers those code don't have any comment line specified.
    for example : In above XML the code line : <item>  SAPGUI ( FB01_120_STEP_3 ).</item> it doesn't have any comment line means this code don't have any comment. So vbscript should find such line numbers and code text and show error message.
    3) Each code had its own comment just above line of code.
    4) In <PARAMETER> node we have to check <PNAME> is staring with letter "I" or not.. If its staring with letter "I" then its <PTYPE> and <PGROUP> staring letter should be "I". We have to check this condition
    for every child node of <PARAMETER> node using vbscript.
     Please help me and Thank You so much in advance.
    My Vb Script is as follows :
    filename = "D:\Automation\o.txt"
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile(filename)
    fl=0
    Do Until f.AtEndOfStream
                    strLine = f.ReadLine
                    if (strLine ="MESSAGE ( MSG_1 ).") then
                                Document.write("<br>Inside MESSAGE ")
                                     Do until f.AtEndOfStream
                                                    strLine = f.ReadLine
                                                                    if((Left(strLine,1)="*"))
    Then
                                                                    if((Right(strLine,1)="."))
    then 
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                                     fl=1
                                                    else 
                                                                    if((Right(strLine,1)=".")
    and (fl=1))Then
          fl=0
        else
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                    end if
                              Loop
    end if
       And the following code for <PARAMETER> tag :
    Const XMLDataFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    xmlDoc.Load(XMLDataFile)
     xmlDoc.validateOnParse = True  
     If xmlDoc.Load(XMLDataFile) Then 
              Document.write "SUCCESS loading XML File"  
     Else  
         Document.write "ERROR loading XML File"  
          End If
    counter=0  
    Set root = xmlDoc.documentElement
    Set items = root.childNodes
    for each item in items
        myPNAME = xmlDoc.getElementsByTagName("PNAME").item(counter).text
        myPTYP = xmlDoc.getElementsByTagName("PTYP").item(counter).text
        myPGROUP = xmlDoc.getElementsByTagName("PGROUP").item(counter).text
        If (Left(myPNAME, 1) = "I") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "I") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "I" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
        If (Left(myPNAME, 1) = "V") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "V") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "V" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    If (Left(myPNAME, 1) = "E") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "E") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "E" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    counter=counter+1
    next
                                                                    

    Here is a better example of how to pull all of the text.
    strXmlFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    If xmlDoc.Load(strXmlFile) Then
    WScript.Echo "SUCCESS loading XML File"
    Else
    WScript.Echo "ERROR loading XML File"
    End If
    Set items = xmlDoc.SelectNodes("//SCRIPT/ETXML_LINE_TABTYPE/item")
    For Each item In items
    WScript.Echo item.Text
    Next
    ¯\_(ツ)_/¯

  • How to test sound using echo call on my Samsung Pr...

    I have a Skype account and am trying to see if the audio works on my Samsung Galaxy Pro 8.4 tablet which is running Android 4.4.2.  How do I make an echo test call on this device?

    I found some refrance it,works.But another thing is every code i found is applied on button.But,I cant use this code b.coz I have n number of buttons,it will again create problem.Can u suggest me anything more?
    I want something like it will attch sound through folder path (link).And 1 button should abale to play more than 10 sounds with diffrent click.
    Thanks.

  • How to write DVD using disk utility

    I have ripped a dvd to my harddrive to make a backup copy of my dvd. Toast Titanium is giving me error while writing to dvd drive. How can i use disk utility to write this dvd.

  • How to read emails using javamail

    hello friends
    well i am working on a project on phishing for that i had usinf javamail to read out the mails while i open my any email account while i working on the net .
    actually what i want is whenever i open my account my program could detect the mail and it will it work after that
    so can anyone please help me out in doing this means my first problem is how to get my program get linked with that so that everytime i opem my email account (not specific) i can use the message stuff written in that for my further use
    please help me guys i really need help
    please reply as soon as possible
    thanks

    i could not understand your problem exactly.
    if you mean you want to check the new messages count: you can simply used
    int newMessages = folder.getNewMessageCount();if you are reading mails first time using javamail.
    see http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/
    if you mean something else ... please let me know
    asif shahzad
    Edited by: asifsh7 on Jul 22, 2008 8:53 AM

  • How to read and use an API ?

    Hi all,
    In the Java Tutorial - Nested Classes chapter, one of the questions at the end is like this:
    Q2. Use the Java API documentation for the Box class (in the javax.swing package) to help you answer the following questions.
    a. What +{color:#3366ff}static nested class{color}+ does Box define?
    b. What +{color:#993366}inner class{color}+ does Box define?
    c. What is the +{color:#ff6600}superclass{color}+ of Box&rsquo;s inner class?
    d. Which of Box&rsquo;s {color:#003300}+nested classes+{color} can you use from any class?
    e. How do you create +{color:#ff0000}an instance of Box&rsquo;s Filler class?+
    +{color}+
    {color:#000000}I can figure out the answers from a - d. But I don't understand the answers for e.
    {color}{color:#008000}
    Answer 2e: {color}new Box.Filler(minDimension, prefDimension, maxDimension)
    Where do we find the answers for (minDimension, prefDimension, maxDimension)? Is it written in the API? We can't actually see the programming codes in an API, right?
    Thank you for your reply.
    {color:#ffff00}
    Cheers~
    ++{color}
    Edited by: elaine_g on 16-Jul-2008 10:18 AM

    JoachimSauer wrote:
    If you look at the JavaDoc for the [Box.Filler constructor|http://java.sun.com/javase/6/docs/api/javax/swing/Box.Filler.html#Box.Filler(java.awt.Dimension,%20java.awt.Dimension,%20java.awt.Dimension)], then you'll see that it takes 3 Dimension objects.
    Thank you! I was looking at the constructor of the wrong class - 'Class Box' instead of 'Class Box.Filler', no wonder I couldn't find it. :p Thx. :-)
    DrLaszloJamf wrote:
    The Filler constructor takes three dimensions objects, right?
    Dimension minDimension = ...
    Dimension prefDimension= ...
    Dimension maxDimension= ...
    Box.Filler filler = new Box.Filler(minDimension, prefDimension, maxDimension);That's it. Nothing more involved or mysterious.Thanks a lot for the code, I can visualize it better now.
    P/S: Well, it was pretty mysterious for a while. 'Twas the very first time I've ever seen an API. ;-)
    Cheers~

  • How to read DVD disk Data?

    Hello,
    I was hoping there might be a way, or more likely an Xtra,
    that would allow Dir to read the pre-written lead-in track info on
    recordable DVD disks. Being able to read this would allow some
    level of disk copy protection.
    For clarification, I am talking about reading some of the
    info like brand, lot, etc. The type of information one gets from
    programs like DVDinfo Pro and others.
    Any thoughts and insight into this is appreaciated. Is this
    something BinaryIO can do?

    http://gizmodo.com/5070368/caps-lock-trainer-key-painfully-punishes-poor-netiquette
    Also, there is no native way to display a PDF in flash. You will need to use a utility that converts it. SWFTools has one that works pretty well.

  • How to read/know/use  relative paths in java files ?

    I am able to access files in java after using the
    String TxtURL = "file:///c:/files/TEXTS/";and then loop
    = new File(ma.TxtURL +filename );However , I need to use this in several drives , C , D E etc , how can I use relative path ?
    I used these but they didn't work
    String TxtURL = "file:///TEXTS/";
    String TxtURL = "file:////TEXTS/";
    String TxtURL = "file:///./TEXTS/";
    String TxtURL = "file:///../TEXTS/";

    ya batch , I want to run a java program from batch file
    java C:\...\fileand as u know that C will change , so any suggestions/solutions ?
    thanks

  • How to read Filename using FileAdapter

    I am trying to write some xml files using FileAdapter of SOA11g. For that I have created synchronous BPEL process.
    My xyz.jca file looks something like this:
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="/mnt/vol_ora_SOADEV1_apps_01/DevCsvFiles/Inventory"/>
    <property name="Append" value="false"/>
    <property name="FileNamingConvention" value="FileTemp%SEQ%.txt"/>
    <property name="NumberMessages" value="1"/>
    </interaction-spec>
    </endpoint-interaction>
    Now the problem is I want to know the filename which is just being written by this Adapter. I want to use that filename later in my code.
    I tried using filename property in invove activity, but I am unable to read filename after its written to disk.

    Got right way to do it. Create one variable eg varFileName, assign some value eg. "Filenamexyz.ext" and refer to that variable (set properties of invoke activity jca.file.filename as varFileName and type 'Input')in Invoke activity invoking read adapter .

  • How to Read barcode using Gige camera qith vison software

    Hi ,
    I have a Gige vision camera, I need to use this to read the barcode and save it in a file. Is there a way to read a barcode directly from the camera using labview vison software.Please do let me know if there is a way.
    Thanks,
    Ankit G
    Solved!
    Go to Solution.

    Hi Ankit 
    I dont know if you have NI's Vision Builder for Automated Inspection, it has a function to do Barcode reading, it is very convenient tool to use with lot of good examples.
    Kudos are welcomed 
    Thanks & Regards,
    Kunal Raithatha.
    CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D :-)
    Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
    located in the upper right corner of the front panel or block diagram" ...If you know any
    more reply back.

  • How to terminate Correlation using Papi Call in Java

    Hi ,
    I have process processP1 in which there is a automatic activity A1, within this activity I am creating a correlation with the combination of customer_id and loan_id.
    Correlation.initiate(name : CORRELATION_NAME, values : { customer_id, loan_id });
    After that, there is a subprocess processP2, after the instance is prcessed completely in processP2, I have another automatic activity A2 in processP1 , I am terminating the correlation .
    Correlation.terminate(name :CORRELATION_NAME)
    One issue which I am facing is there is a instance for which a correlation was created, it failed in processP2 and was aborted. This particular instance never went to A2 the correlation was not terminated.
    Whenever the same combination of customer_id and loan_id is getting created, it is showing as duplicate entry.
    Is there a way to clear / terminate that particular correlation? Can It be done using Papi ?
    Any suggestions / advice would help.
    Thanks,

    Sreekant wrote:
    Hi ,
    I have process processP1 in which there is a automatic activity A1, within this activity I am creating a correlation with the combination of customer_id and loan_id.
    Correlation.initiate(name : CORRELATION_NAME, values : { customer_id, loan_id });
    After that, there is a subprocess processP2, after the instance is prcessed completely in processP2, I have another automatic activity A2 in processP1 , I am terminating the correlation .
    Correlation.terminate(name :CORRELATION_NAME)
    One issue which I am facing is there is a instance for which a correlation was created, it failed in processP2 and was aborted. This particular instance never went to A2 the correlation was not terminated.
    Whenever the same combination of customer_id and loan_id is getting created, it is showing as duplicate entry.
    Is there a way to clear / terminate that particular correlation? Can It be done using Papi ?1. Get the instances by using the below method. the below method is avliable in the ProcessServiceSession calss.
    InstanceInfo processGetInstanceByCorrelation(String processId,
    String correlationName,
    Object[] correlationValues)
    throws OperationException
    2. Notiy these instances using the method. the below method is avliable in the ProcessServiceSession calss
    processSendNotification(String targetInstanceOrProcessId,
    String activityName,
    String targetArgumentsSetName,
    Arguments notification)
    throws OperationException
    >
    Any suggestions / advice would help.
    Thanks,Hope this helps
    Narasimha

Maybe you are looking for

  • Sending Purchase Order to XI(IDOC to File Scenario)

    Hi, I have imported IDoc type ORDERS05 for Message Type ORDERS in XI 7.0 & i have created the IDOC to File Scenario for Purchase Order & activated all the objects. Now in SAP ECC 6.0, i have created a purchase order using ME21N. No idocs created. Let

  • Text copied from PDF broken to one-word paragraphs

    I have MBP with 10.8.3 and CS5 Acrobat Pro 10.1.7. Whenever I copy&paste text from a PDF created in MS Word 2008 12.0.0. and paste it in InDesign or Mail, there's a line break after every word. Also, when I copy&paste text from a PDF that was created

  • How to create a JMS standalone client with SAS PE8.2 ?

    HI everyone, I use Creator2.1 and I want to write a JMS standalone client that communicate through JMS with a webapp built with Creator. My pb is that I dont know how to set up initialContext. Hashtable env=new Hashtable(); env.put(Context.PROVIDER_U

  • Slow VF04 Process Only on One Company Code

    We have 5 company codes on our system. Last month we create new company code. No problem in Devevelopment or QA Server. However, when we transporteded this new company code configuration to Production server, we got VF04 problem. VF04 very slow for o

  • How can I get into my phone if I cant use the touch screen?

    I went to go use my phone and when I attempted to get to the screen to type in my passcode, the area to swipe didnt work. The only feature that "works" is the little arrow on the bottom to get to the brightness feature, etc. I cannot turn my phone of