Query on File() constructor parameter

I have a query on the File(String pathname) constructor.
Could anyone advise me why its parameter is the pathname? Is the pathname has included the file's name?
String mypahtname = "c:\\folder\\";
String myfilename = "abc.txt";
String mystring = mypathname + myfilename;
File myfile = new File(mystring);The above is working. However, the parameter is not the pathname. Why is it working?

A File object in Java may point to either an actual file, or a directory. So the final member of the path String parameter may be either a file or directory.
Read the first paragraph here
http://java.sun.com/javase/6/docs/api/java/io/File.html

Similar Messages

  • Best way to spool DYNAMIC SQL query to file from PL/SQL

    Best way to spool DYNAMIC SQL query to file from PL/SQL [Package], not SqlPlus
    I'm looking for suggestions on how to create an output file (fixed width and comma delimited) from a SELECT that is dynamically built. Basically, I've got some tables that are used to define the SELECT and to describe the output format. For instance, one table has the SELECT while another is used to defined the column "formats" (e.g., Column Order, Justification, FormatMask, Default value, min length, ...). The user has an app that they can use to customize the output...which leaving the gathering of the data untouched. I'm trying to keep this formatting and/or default logic out of the actual query. This lead me into a problem.
    Example query :
    SELECT CONTRACT_ID,PV_ID,START_DATE
    FROM CONTRACT
    WHERE CONTRACT_ID = <<value>>Customization Table:
    CONTRACT_ID : 2,Numeric,Right
    PV_ID : 1,Numeric,Mask(0000)
    START_DATE : 3,Date,Mask(mm/dd/yyyy)The first value is the kicker (ColumnOrder) as well as the fact that the number of columns is dynamic. Technically, if I could use SqlPlus...then I could just use SPOOL. However, I'm not.
    So basically, I'm trying to build a generic routine that can take a SQL string execute the SELECT and map the output using data from another table to a file.
    Any suggestions?
    Thanks,
    Jason

    You could build the select statement within PL/SQL and open it using a cursor variable. You could write it to a file using the package 'UTL_FILE'. If you want to display the output using SQL*Plus, you could have an out parameter as a ref cursor.

  • How to query XML file RDL SSRS Report to find column titles?

    I have list of SSRS reports  theirRDL file. How can we query the file to find like text book name as below(  <Textbox Name="bippie_passed_qa_photostamps_orders_amount">). Catlog t able in report server does not provide column title
    but i am trying to find column title through RDL file. How can we query in SQL server 2012 version too? I am new in XML please help is appreciated.
      </Textbox>
                      </CellContents>
                    </TablixCell>
                    <TablixCell>
                      <CellContents>
                        <Textbox Name="bippie_passed_qa_photostamps_orders_amount">
                          <CanGrow>true</CanGrow>
                          <KeepTogether>true</KeepTogether>
                          <Paragraphs>
                            <Paragraph>
                              <TextRuns>
                                <TextRun>
                                  <Value>=Fields!bippie_passed_qa_photostamps_orders_amount.Value</Value>
                                  <Style>
                                    <FontSize>8pt</FontSize>
                                    <Format>'$'#,0.00;('$'#,0.00);''</Format>
                                  </Style>
                                </TextRun>
                              </TextRuns>
                              <Style>
                                <TextAlign>Right</TextAlign>

    You will first need to get your report XML from the dbo.Catalog table but something like this should work:
    -- !!TODO get your report XML from the dbo.Catalog table
    DECLARE @ssrsXML TABLE ( yourXML XML )
    INSERT INTO @ssrsXML
    SELECT '<TablixCell>
    <CellContents>
    <Textbox Name="bippie_passed_qa_photostamps_orders_amount">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!bippie_passed_qa_photostamps_orders_amount.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <Format>''$''#,0.00;(''$''#,0.00);''''</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    </Textbox>
    </CellContents>
    </TablixCell>'
    SELECT t.*, c.c.value('@Name', 'VARCHAR(100)' ) nameProperty
    FROM @ssrsXML t
    CROSS APPLY yourXML.nodes('//TablixCell/CellContents/Textbox' ) c(c)

  • Oracle WebADI: How to Download the WebADI Excel File with Parameter

    Hello Friends,
    How to Download the Oracle WebADI Excel File with Parameter??
    For Ex: How to download the Employees for Specific Department from Oracle WebADI.
    And After to change the specific changes on Employee Data to Upload.
    Thanks in Advance.

    Hi Team.
    Any Advise on it!!

  • In dreamweaver site-wide query option file grayed out

    in dreamweaver site-wide query option file grayed out
    Why won't this button option work, I cannot get the site-wide query to highlight, please help anyone, thanks.

    You need to have a defined site in order for DW to correctly work with your files...
    http://tv.adobe.com/watch/learn-dreamweaver-cs5/gs01-defining-a-new-site/
    Once defined, you will always work from the Dreamweaver Files panel to ensure the program can manage your files correctly.

  • Location of query log files in OBIEE 11g (version 11.1.1.5)

    Hi,
    I wish to know the Location of query log files in OBIEE 11g (version 11.1.1.5)??

    Hi,
    Log Files in OBIEE 11g
    Login to the URL http://server.domain:7001/em and navigate to:
    Farm_bifoundation_domain-> Business Intelligence-> coreapplications-> Dagnostics-> Log Messages
    You will find the available files:
    Presentation Services Log
    Server Log
    Scheduler Log
    JavaHost Log
    Cluster Controller Log
    Action Services Log
    Security Services Log
    Administrator Services Log
    However, you can also review them directly on the hard disk.
    The log files for OBIEE components are under <OBIEE_HOME>/instances/instance1/diagnostics/logs.
    Specific log files and their location is defined in the following table:
    Log Location
    Installation log                     <OBIEE_HOME>/logs
    nqquery log <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1
    nqserver log <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1
    servername_NQSAdminTool log      <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1
    servername_NQSUDMLExec log                          <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1
    servername_obieerpdmigrateutil log (Migration log)           <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1
    sawlog0 log (presentation)                          <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIPresentationServicesComponent/coreapplication_obips1
    jh log (Java Host)                               <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIJavaHostComponent\coreapplication_obijh
    webcatupgrade log (Web Catalog Upgrade)                <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIPresentationServicesComponent/coreapplication_obips1
    nqscheduler log (Agents)                          <OBIEE_HOME>/instances/instance1/diagnostics/logsOracleBISchedulerComponent/coreapplication_obisch1
    nqcluster log                                    <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIClusterControllerComponent\coreapplication_obiccs1
    ODBC log                                    <OBIEE_HOME>/instances/instance1/diagnostics/logs/OracleBIODBCComponent/coreapplication_obips1
    opmn log                                    <OBIEE_HOME>/instances/instance1/diagnostics/logs/OPMN/opmn
    debug log                                    <OBIEE_HOME>/instances/instance1/diagnostics/logs/OPMN/opmn
    logquery log                               <OBIEE_HOME>/instances/instance1/diagnostics/logs/OPMN/opmn
    service log                                    <OBIEE_HOME>/instances/instance1/diagnostics/logs/OPMN/opmn
    opmn out                              <OBIEE_HOME>/instances/instance1/diagnostics/logs/OPMN/opmn
    Upgrade Assistant log                         <OBIEE_HOME>Oracle_BI1/upgrade/logs
    Regards
    MuRam

  • Webanalysis : Query Log File

    Hi,
    Plz suggest me where can i the path for report's query log file. i.e I run a webanalysis report and now i want to see the query that it fire to the source.
    I want to see the detail level log.
    Is there any other setting that i need to do like entry in property file or something.
    Plz suggest the way.
    Thanks

    Create two env variables
    ADM_TRACE_LEVEL=0
    REDIRECTOR_TRACE_LEVEL=0
    Also you can add this line to WA.prop file
    LogQueries=true
    Hope it hepls
    Regards
    CK

  • Query log file missing

    I am trying create a query log file for an ASO cube. I have created the database.cfg file in the database directory and restarted the application. Then I run a few queries, and stop the application. Query log file (database.qlg) is not created. My database.cfg file looks like this:<BR>QUERYLOG [LOB]<BR>QUERYLOG LOGFILESIZE 2<BR>QUERYLOG TOTALLOGFILESIZE 1024<BR>QUERYLOG ON<BR><BR>Thanks

    I am trying create a query log file for an ASO cube. I have created the database.cfg file in the database directory and restarted the application. Then I run a few queries, and stop the application. Query log file (database.qlg) is not created. My database.cfg file looks like this:<BR>QUERYLOG [LOB]<BR>QUERYLOG LOGFILESIZE 2<BR>QUERYLOG TOTALLOGFILESIZE 1024<BR>QUERYLOG ON<BR><BR>Thanks

  • Best way to print result of query to file from pl/sql?

    If I have a query, let's say 'select * form my_table', what's the best way to print it to a file from pl/sql?
    Do I have to create a cursor, go through each line, and use some file output function? Or is there some clever way to say 'print this query to file!'

    The rest of my procedure (the one generating the query itself) is in PL/SQL. So it needs to be done from there. Any tricks?
    (What's paper? I meant 'write to file')

  • Count number of columns in query passed as PLSQL parameter

    Hi All,
    I am using a PLSQL package to generate excel file in a Database directory, to generate file i am passing sql query and number of columns manually in a parameter.
    Now i want to automate it and do not want to pass "Number of Columns" as parameter.
    HOW CAN I CALCULATE NUMBER OF COLUMNS IN PASSED QUERY.
    Note: query can contain functions ( to get description or any other data)
    Many Thanks in advance

    http://saubbane.blogspot.com/2011/01/how-to-find-column-count-of-query.html
    Along with Re: Dynamic Fetch on dynamic Sql and just below this post, Blushadow's original run_query (from which I nicked!).

  • Query on File Adapter - HeaderLine

    Hi All,
         I've a query related to FCC - header line for the following structure.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Testxmlns:ns0="urn:test:file">
    <Record>
    <Record1><field1>X</field1><field2>B</field2></Record1>
    <Record2><field2>C</field3><field4>D</field4></Record2>
    <Record3><field3>E</field5></Record3>
    </Record>
    <Record>
    <Record1><field1>K</field1><field2>L</field2></Record1>
    <Record2><field2>M</field3><field4>N</field4></Record2>
    <Record3><field3>O</field5></Record3>
    </Record>
    </ns0:MT_Test>
    And the file output (after FCC) should be as follows, where H1, H2 and H3 are the headers and the rest are the file values.
    H1,H2,H3
    X;C;E
    K;M;O
    FCC Param is like: Record1.fieldSeparator = ; and Record1.headerLine = 1 and same for rest two. But the output file generated doesn't have the Header line generated. Please let me know the FCC setting for the same.
    Thanks,
    Joe.

    Joe,
    The parameter should be Record1.addHeaderLine = 1([http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm]
    Kind regards,
    Koen

  • Querying XML File

    Hi,
    Based on the logic provided in forum(Please see below), we have developed procedure to read XML file which we receive as CLOB input parameter. This XML file will contain 50 records which need to be read inside the procedure. To read these 50 records it is taking 2 seconds of time.
    Now we got requirement to read up to 1500 records which will be supplied by CLOB field as input parameter to the procedure.
    But we are facing really a big challenge over here. Initially in testing phase we are trying to read just 100 records for which the time taking from point 1 to point 2(Mentioned below, that is going in to the loop) is around 60 sec. As you know this is not acceptable. So can you please help me to reduce this time frame?
    POINT 1
    For I IN( select /*+ no_xml_query_rewrite */
    x.firstname fnname,
    x.LastName lstname,
    x.BirthDate birthdate,
    x.Gender gender,
    x.usercode usercode,
    x.opened opened,
    x.time time,
    x.TobaccoInd TobaccoInd,
    x.Employmeeid Employmeeid,
    x.Title Title,
    x.zip zip,
    x.riskclass riskclass,
    x.policystatus policystatus,
    x.NYReg60Ind NYReg60Ind,
    x.Exchange1035Ind Exchange1035Ind,
    x.ModalPremAmt ModalPremAmt,
    x.FaceAmt FaceAmt,
    x.vProductType vProductType,
    x.vHoldingSysKey vHoldingSysKey,
    x.InterestPercent InterestPercent,
    x.vPolno vPolno,
    /*x.DSGN_OPT_AMT DSGN_OPT_AMT,
    x.dsgn_opt_pct dsgn_opt_pct,
    x.ArrType ArrType,
    x.ArrSubType ArrSubType,
    x.ArrStatus ArrStatus,*/
    x.Arrangement,
    x.vattdate vattdate,
    x.vatttime vatttime,
    x.EVENT_NM EVENT_NM,
    x.AttachmentData AttachmentData,
    x.AttachmentSource AttachmentSource,
    x.attusercode attusercode,
    x.vHoldingid Holdingid
    from (SELECT xData doc FROM dual) t,
    xmltable(
    'let $x := $d/TXLife/TXLifeRequest/OLifE
    for $i in $x/Relation[RelationRoleCode/@tc=32]
    return element r
    $x/Holding[@id=$i/@OriginatingObjectID]/@id,
    $x/Holding[@id=$i/@OriginatingObjectID]/Policy,
    $x/Holding[@id=$i/@OriginatingObjectID]//Arrangement,
    $x/Holding[@id=$i/@OriginatingObjectID]/HoldingSysKey,
    $x/Holding[@id=$i/@OriginatingObjectID]/Attachment,
    $x/Party[@id=$i/@RelatedObjectID]/Person,
    $x/Party[@id=$i/@RelatedObjectID]/Risk,
    $x/Party[@id=$i/@RelatedObjectID]/Employment,
    $x/Party[@id=$i/@RelatedObjectID]/Address,
    $x/Activity,
    $x/Relation[@OriginatingObjectID=$x/Holding[@id=$i/@OriginatingObjectID]/@id][RelationRoleCode/@tc=32]/InterestPercent
    passing doc as "d"
    columns
    vHoldingid varchar2(50) path '@id',
    usercode varchar2(200) path 'Activity/UserCode',
    opened varchar2(20) path 'Activity/Opened',
    time varchar2(20) path 'Activity/OLifEExtension/ActivityExtension/OpenedTime',
    InterestPercent varchar2(200) path 'InterestPercent',
    vPolno number path 'Policy/PolNumber',
    riskclass varchar2(20) path 'Policy/Life/Coverage/CovOption/UnderwritingClass/@tc',
    policystatus varchar2(100) path 'Policy/PolicyStatus/@tc',
    NYReg60Ind VARCHAR2(100) path 'Policy/OLifEExtension/PolicyExtension/NYReg60Ind/@tc',
    Exchange1035Ind varchar2(10) path 'Policy/Life/LifeUSA/OLifEExtension/LifeUSAExtension/Exchange1035Ind/@tc',
    ModalPremAmt varchar2(20) path 'Policy/Life/Coverage/ModalPremAmt',
    FaceAmt varchar2(20) path 'Policy/Life/FaceAmt',
    vProductType VARCHAR2(100) path 'Policy/ProductType/@tc',
    firstname VARCHAR2(200) path 'Person/FirstName',
    LastName VARCHAR2(200) path 'Person/LastName',
    BirthDate VARCHAR2(20) PATH 'Person/BirthDate',
    Gender varchar2(10) PATH 'Person/Gender/@tc',
    TobaccoInd varchar2(5) path 'Risk/TobaccoInd/@tc',
    Employmeeid varchar2(100) path 'Employment/EmployeeID',
    Title varchar2(100) path 'Employment/Title',
    zip varchar2(100) path 'Address/Zip',
    vHoldingSysKey varchar2(100) path 'HoldingSysKey',
    Arrangement XMLTYPE PATH 'Arrangement',
    /*DSGN_OPT_AMT varchar2(100) path 'Arrangement/ArrSource[TransferAmtType/@tc=2]/TransferAmt',
    dsgn_opt_pct varchar2(100) path 'Arrangement/ArrSource[TransferAmtType/@tc=3]/TransferPct',
    ArrType VARCHAR2(20) path 'Arrangement/ArrType/@tc',
    ArrSubType VARCHAR2(20) path 'Arrangement/OLifEExtension/ArrangementExtension/ArrSubType/@tc',
    ArrStatus VARCHAR2(10) path 'Arrangement/ArrStatus/@tc',*/
    EVENT_NM VARCHAR2(1000) path 'Attachment/Description',
    AttachmentData VARCHAR2(1000) path 'Attachment/AttachmentData',
    AttachmentSource VARCHAR2(1000) path 'Attachment/AttachmentSource',
    attusercode vARCHAR2(1000) path 'Attachment/UserCode',
    vattdate VARCHAR2(20) PATH 'Attachment/DateCreated',
    vatttime VARCHAR2(20) path 'Attachment/OLifEExtension/AttachmentExtension/CreationTime'
    ) x
    LOOP
         BEGIN
              POINT 2
              <Here comes the business logic>
         END;
    END LOOP;
    Logic posted in Forum:
    I guess this should normally work without the hint (NO_XML_QUERY_REWRITE), but actually it doesn't :
    SQL> select /*+ no_xml_query_rewrite */
    2 x.*
    3 from test_xml t,
    4 xmltable(
    5 'let $x := $d/TXLife/TXLifeRequest/OLifE
    6 for $i in $x/Relation[RelationRoleCode/@tc="32"]
    7 return element r
    8 {
    9 $x/Holding[@id=$i/@OriginatingObjectID]/Policy
    10 , $x/Party[@id=$i/@RelatedObjectID]/Person
    11 }'
    12 passing t.object_value as "d"
    13 columns PolNumber number path 'Policy/PolNumber'
    14 , FirstName varchar2(30) path 'Person/FirstName'
    15 , LastName varchar2(30) path 'Person/LastName'
    16 ) x
    17 ;
    POLNUMBER FIRSTNAME LASTNAME
    308221234 John Doe
    308221235 Jane Doe
    TEST_XML is an XMLType table (binary storage) where I loaded the XML document.
    Edited by: 916962 on Feb 25, 2012 5:42 AM

    Vamsi,
    Please try the steps below :
    1) Create an xmltype table (could be temporary if you want) :
    create table tmp_xml of xmltype
    xmltype store as securefile binary xml;2) At the beginning of your procedure, store the input CLOB in the table :
    insert into tmp_xml values(xmltype(xData));3) Then in the procedure, query directly from the XMLType table.
    Here's a modified and simplified (for this example) version of your actual query :
    select x.ooid
         , x.roid
         , x.interestpercent
         , x1.*
         , x2.*
    from tmp_xml t
       , xmltable(
           '/TXLife/TXLifeRequest/OLifE/Relation[RelationRoleCode/@tc="32"]'
           passing t.object_value
           columns OOID            varchar2(50)  path '@OriginatingObjectID'
                 , ROID            varchar2(50)  path '@RelatedObjectID'
                 , InterestPercent varchar2(200) path 'InterestPercent'
         ) x
       , xmltable(
           '/TXLife/TXLifeRequest/OLifE/Holding[@id=$ooid]'
           passing t.object_value, x.ooid as "ooid"
           columns
             vPolno          number        path 'Policy/PolNumber',
             vProductType    varchar2(100) path 'Policy/ProductType/@tc',
             policystatus    varchar2(100) path 'Policy/PolicyStatus/@tc',
             FaceAmt         varchar2(20)  path 'Policy/Life/FaceAmt',
             ModalPremAmt    varchar2(20)  path 'Policy/Life/Coverage/ModalPremAmt',
             riskclass       varchar2(20)  path 'Policy/Life/Coverage/CovOption/UnderwritingClass/@tc',
             Exchange1035Ind varchar2(10)  path 'Policy/Life/LifeUSA/OLifEExtension/LifeUSAExtension/Exchange1035Ind/@tc', 
             NYReg60Ind      varchar2(100) path 'Policy/OLifEExtension/PolicyExtension/NYReg60Ind/@tc'
         ) x1
       , xmltable(
           '/TXLife/TXLifeRequest/OLifE/Party[@id=$roid]'
           passing t.object_value, x.roid as "roid"
           columns
             firstname   varchar2(200) path 'Person/FirstName',
             LastName    varchar2(200) path 'Person/LastName',
             BirthDate   date          path 'Person/BirthDate',
             Gender      varchar2(10)  path 'Person/Gender/@tc',
             TobaccoInd  varchar2(5)   path 'Risk/TobaccoInd/@tc',
             Employmeeid varchar2(100) path 'Employment/EmployeeID',
             Title       varchar2(100) path 'Employment/Title',
             zip         varchar2(100) path 'Address/Zip'
         ) x2
    OOID          ROID          INTERESTPERCENT        VPOLNO VPRODUCTTYPE  POLICYSTATUS   FACEAMT    MODALPREMAMT   RISKCLASS    EXCHANGE1035IND NYREG60IND   FIRSTNAME      LASTNAME      BIRTHDATE   GENDER     TOBACCOIND EMPLOYMEEID    TITLE            ZIP
    Holding_1     Client_1      50                  308221234 1009800001    1              150000     500            1009800001   1               1            John           Doe           25/10/1960  1          0          12345678       Vice President   07310
    Holding_3     Client_2                          308221235 1009800001    1              150000     500            1009800001   1               1            Jane           Doe           30/10/1970  2          0          98765432                        07310
    The explain plan should show something like this ("streaming evaluation" instead of "collection iterator fetch") :
    Execution Plan
    Plan hash value: 201581907
    | Id  | Operation             | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |         |  4451M|   551G|  1501M  (1)|999:59:59 |
    |   1 |  NESTED LOOPS         |         |  4451M|   551G|  1501M  (1)|999:59:59 |
    |   2 |   NESTED LOOPS        |         |    54M|  5976M|    18M  (1)| 61:17:09 |
    |   3 |    NESTED LOOPS SEMI  |         |   667K|    61M|   222K  (1)| 00:44:34 |
    |   4 |     NESTED LOOPS      |         |  8168 |   757K|    32   (0)| 00:00:01 |
    |   5 |      TABLE ACCESS FULL| TMP_XML |     1 |    87 |     3   (0)| 00:00:01 |
    |   6 |      XPATH EVALUATION |         |       |       |            |          |
    |*  7 |     XPATH EVALUATION  |         |       |       |            |          |
    |*  8 |    XPATH EVALUATION   |         |       |       |            |          |
    |*  9 |   XPATH EVALUATION    |         |       |       |            |          |
    Predicate Information (identified by operation id):
       7 - filter("P5"."C_01$"='32')
       8 - filter("P1"."C_01$"=CAST("P"."C_03$" AS varchar2(50)  ))
       9 - filter("P2"."C_01$"=CAST("P"."C_02$" AS varchar2(50)  ))How complex are the business rules you're implementing in the loop? Do you really need a FOR loop at all?
    For instance, if you're just inserting into relational tables, then you don't have to loop.
    Edited by: odie_63 on 19 mars 2012 15:23

  • File access parameter in file adapter at receiver side

    Hi Experts,
    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction    mode = add time stamp and put file directly .but it is showing time in file name????????
    2. i want my file name as  TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    Regards

    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
    The addtime stamp will add timestamp as the last part of the filename before the extension.
    2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
    Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
    Search SDN for dynamic file naming.

  • Query for file version less than 10.0 does not return expected data

    I'm trying to build a query for all PCs that have a version of Iexplore.exe in c:\windows\program files\ that is less than 10.0 .  When I run the query it returns no data. When I change 10.0 in the query to 9.9 it returns files with version 10.xxx in
    the results.  Its as if it is seeing 10.0 as 1.0.   Is this expected ?
    select SMS_R_System.Name, SMS_R_System.ADSiteName, SMS_G_System_SoftwareFile.FileName, SMS_G_System_SoftwareFile.FileVersion from  SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where
    SMS_G_System_SoftwareFile.FileName = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath = "C:\\program files\\internet explorer\\" and SMS_G_System_SoftwareFile.FileVersion < "9.9"

    It is because the values are not integer, they are a string. And therefore 1 is smaller then 9.
    http://www.enhansoft.com/

  • Setting file type to open in WebStart Program (Opened file as parameter)

    Hi --
    I've created a Java program & installed in on my PC using Web Start. Now I'd like set all .sit files to automatically open in my program. My program expects a file as input, and I'd like the opened .sit file to be that parameter.
    I've tested this using a batch file to run the program (instead of Web Start), and that worked fine. I'm not able to get this to work with a Web Start program, though.
    I opened My Computer & went to Tools / Folder Options / File Types. I created an SIT extention, and I tried a number of things:
    1. I had Web Start place a shortcut on the desktop, and then I selected that shortcut from the list in the File Types window --> I got a "TooManyArgumentsException" when I double-clicked on the .sit file.
    2. I tried to set the File Types setting to http://myserver/myapp.jnlp. --> Windows recognized that this wasn't an executable & wouldn't let me save it.
    3. I created a shortcut to http://myserver/myapp.jnlp and pointed the File Types setting to that. --> Windows wouldn't let me save that.
    4. I clicked the Advanced button on the File Types tab, and created an open action. I tried the same three things there & got the same results.
    Is it possible to do what I'm trying to do (force .sit files to open in my Java Web Start program and send their filename into the program's main method as a parameter)? Does anyone have any pointers?
    Thanks,
    Bonnie

    This is a new feature in Java Web Start 1.5, and in the 1.5 version of the JNLP specification.
    The <association> tag in the jnlp file can be used to ask Web Start to create the fextension/mime-type asociation for ".sit" extensions so that if you click on a ".sit" file, the system will launch "javaws -open clickedfile.sit yourapp.jnlp" see:
    http://jcp.org/aboutJava/communityprocess/maintenance/jsr056/jnlp_spec.html#4756982
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#information
    /Dietz

Maybe you are looking for

  • Problem while deploying app : An error occurred while contacting the subscription settings service

    I am trying to deploy a provider hosted app. According to various articles by MSDN, I have configured the app domain, the necessary services. When I go on deploying the app, I get this error: Error occurred in deployment step 'Install app for SharePo

  • IPod won't sync any of my purchased mucic

    After restoring my iPod to factory settings it is not syncing any purchased music I have lost everything. Ant ideas? Thanks

  • Drop Down Values

    I am using a dropdown by key , I have coded as data lr_node type ref to if_wd_context_node. data lr_node_info type ref to if_wd_context_node_info. lr_node = wd_context->get_child_node( if_psp_main=>wdctx_drop ). lr_node_info = lr_node->get_node_info(

  • Sending MIDI

    How do i see what channels i am sending MIDI out from?. Basically I'm trying to update my Waldorf Blofeld and it looks like I'm sending data into Logic but it's not sending the update firmware back to the Blofeld? So i need to know if I'm sending on

  • Sales order costing is not possible for recursive configurable material

    User is creating cost estimate for sales order, where system is throwing above error. The diagnosis is like below The system recognized that the BOM structure being costed is a recursive production process in which configurable materials are used. Th