How to Check files which is older than 14 days in particuler folder using IF condition in Batch script

Hi,
I have to check the zip files created before 14 days by using Batch script.
Any conditional statement needed ?
Thanks,
Jitu

But this script is failing if the files are not present in the same folder.
So I am thinking to loop the statement to check if files are not there exit from the loop.
The script does not fail - it reports that no files are found. You can detect this like so:
if %ErrorLevel% NEQ 0 echo "There are no zip files!"
There is no loop in your script that you can exit from.

Similar Messages

  • How to upload a file which has more than 999 line item  through BDC ?

    Hello Techards
    Hi to all
    Can any body tell me how to upload a file which has more than 999 line item  through BDC for traction F-02 ?
    Thanks in advance.
    Shovan

    Hello Shovan,
    You split it up to post two accounting documents with the help of a "suspense" a/c.
    Say, you have to post the following line items below:
    line 1 - dr. - GL a/c X - $1000
    line 2 - cr. - GL a/c Y - $1
    line 3 - cr. - GL a/c Y - $1
    line 1001 - cr. - GL a/c Y - $1
    You cannot post the above as a single doc in SAP (because of technical reasons), so you need to break it up into 2 documents as below:
    Doc1
    line 1 - dr - GL a/c X - $1000
    line 2 - cr - GL a/c Y - $1
    line 3 - cr - GL a/c Y - $1
    line 998 - cr - GL a/c Y - $1
    line 999 - cr - SUSPENSE a/c - $3
    Doc2
    line 1 - dr - SUSPENSE a/c - $3
    line 2 - cr - GL a/c Y - $3
    Note that there is no incorrect impact on accounting as first we credit suspense a/c by $3 and next we debit the same suspense a/c by $3 as a result the effect is nil. Similarly, we credit $997 to GL a/c Y (which is less by $3) in the first doc which is compensated by the second doc by crediting the shortfall of $3.
    Hope this helps,
    Cheers,
    Sougata.

  • Regard ora-01207: How Oracle judge file is more recent than control file - old control file

    ORA-00283: recovery session canceled due to errors
    ORA-01122: database file 2 failed verification check
    ORA-01110: data file 2: '/tmp/auxsys.dbf_rman'
    ORA-01207: file is more recent than control file - old control file
    How Oracle judge file is more recent than control file - old control file, then it thrown out error ora-01207.
    It must compare data file with control file, but what compare?

    Begin from the beginning.
    Did you do a RESTORE DATABASE ?
    Or did you selectively restore datafiles ?
    Strange datafile name --- looks like it could have been a DATAFILECOPY done using rman.
    It is a very bad idea to have a datafile in /tmp   On some OSs, /tmp may get cleared of files on a reboot.
    Hemant K Chitale

  • How do you sync Calendar information older than 2 weeks to PALM TX?

    Occasionally, I will change information which is older than two weeks in the past on my Oracle Calendar client running on my Windows XP Pro OS.  When I sync the data to my Palm TX, it does not get transfered back to my TX calendar.  How can I successfully transfer changes (two weeks in the past and beyond) which I make on the PC calendar program to over to my TX so I can read/reference it when I'm away from my desk?
    Post relates to: Palm TX

    This depends on the program you are using to sync between Oracle and Palm Desktop. See if Palm Desktop is first keep up to date. If not there is a communication break down between Palm Desktop and Oracle. Unfortunately this is something we(Palm Techs) know anything about. There could be others that do on here another would be place to know would be www.treocentral.com.
    Post relates to: Treo 800w (Sprint)

  • How to delete daily all idocs older than one year

    Hello
    I wander how to delete daily all idocs older than one year. I guess with an job(but how to create it)

    Hi
    Check this [Link|https://ecohub.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/17c435df-0901-0010-72a7-b9dcd271213d]
    Just give a search in SDN you could find lot of doucments releated to archiving of idocs
    Regards
    Uday

  • How to check File size of a Text file.

    How to check File size of a Text file.
    please explain me.
    I am new in LabVIEW. and dont have much idea on this...;
    Prashant Soni
    LabVIEW Engineer
    Solved!
    Go to Solution.

    Hi Prashant,
    and here's what you get when using the LV help...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How save pdf files which r in inbox for nooia c503

    how save pdf files which r in inbox for nooia c503

    AFAIK, i do not believe this is possible on Series40 devices such as the own that you use.

  • How i access file which stored at application server .? Is there any fm ?

    Hi,
    How i access file which stored at application server . Is there any function module which provide same funtinality.
    Regards,
    Gurprit Bhatia

    Hi ,
            U need to use datasets for reading data from application server.Do a f1 on dataset,u will get to know rest of the things.
    TRY.
        OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UTF-8.
      ENDTRY.
      IF sy-subrc = 0.
          READ DATASET file INTO <wa_data> MAXIMUM LENGTH 200.
               move the data in to internal table
        close dataset
    Edited by: A kumar on Aug 21, 2008 1:37 PM

  • How to check whether a Document in KM is classified or not using JAVA API

    Hello Everyone,
      Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
    Thanks & Regards,
    Adren D'Souza

    Hi,
    The code is as follows:
    IIndexService indexService = null;
    try {
       indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
    } catch (ResourceException e) {
       if (indexService == null) {
         log.errorT("Error on instanciating the index service");
         return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
    // get index
    IIndex index = null;
    try {
       index = indexService.getIndex("YourIndexID");
    } catch (WcmException e1) {
       log.errorT("Error when trying to get the index");
       return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
    // check if the index is a instance of AbstractClassificationIndex
    AbstractClassificationIndex classiIndex = null;
    if (index instanceof AbstractClassificationIndex) {
       classiIndex = (AbstractClassificationIndex) index;
    } else {
       log.errorT("The index " + index.getIndexName() + " is no classification index");
       return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
    //give your KM Resource here for which you want to know if it is classified or not
    boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
    Regards,
    Praveen Gudapati

  • How to check what is the full name of the installer is used?

    Hi,
    how to check what is the full name of the installer is used?
    Thanks,

    Very nice, but assuming you did deliberately fire the installer, don't you remember the command? Apart from that your question has (as usual) no version and no platform and no context. If you are still in the installer and using any variant of Unix you can very easily run 'ps' to see the exact command.
    You would have needed to provide platform and version information when submitting the SR. Can you explain why you have this forum guess at it?
    Sybrand Bakker
    Senior Oracle DBA

  • How to check the user hits to the sites (most often,frequently used sites) in sharepoint 2010?

    HI,
    How to check the user hits to the sites (most often,frequently used sites) in sharepoint 2010?
    could you please help on the above?

    Hello Sudhir muvva,
    Just to be sure, the default Web Analytics reports don't meet your requirements?
    http://blogs.msdn.com/b/ecm/archive/2010/03/21/introducing-web-analytics-in-sharepoint-2010.aspx
    Does reports have subjects like top pages and number of page views.
    - Dennis | Netherlands | Blog |
    Twitter

  • How to check small table scan full table scan if we  will use index  in where clause.

    How to check small table scan full table scan if i will use index column in where clause.
    Is there example link there i can  test small table scan full table  if index is used in where clause.

    Use explain plan on your statement or set autotrace traceonly in your SQL*Plus session followed by the SQL you are testing.
    For example
    SQL> set autotrace traceonly
    SQL> select *
      2  from XXX
      3  where id='fga';
    no rows selected
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=13 Card=1 Bytes=16
              5)
       1    0   PARTITION RANGE (ALL) (Cost=13 Card=1 Bytes=165)
       2    1     TABLE ACCESS (FULL) OF 'XXX' (TABLE) (Cost=13 Card
              =1 Bytes=165)
    Statistics
              1  recursive calls
              0  db block gets
           1561  consistent gets
            540  physical reads
              0  redo size
           1864  bytes sent via SQL*Net to client
            333  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processed

  • How can I save a web page without creating a dozen or more tiny files, which is worse than Internet Explorer?

    When I try to save a Firefox web page, I get about a dozen tiny files with funny names cluttering up my documents folder, and making it hard to find anything. This reminds me of problems I used to have with Internet Explorer more than ten years ago. But at least, IE was kind enough to gather all of these files in a single folder, named "files". Firefox dumps them all into my documents folder. Messy.
    Years ago, I discovered Opera, which offered a file format that combined the original html code with the other files into one file: an internet archive, with the extension mht instead of htm. I used Opera for years, but recently became aware of the advantages of Firefox.
    A few days ago, I downloaded the latest version of Firefox, and installed it. I have been evaluating it ever since. It looks good; I have figured out (more or less) how bookmarks work, and I'm getting used to the taskbars.
    But when I try to save a page, I still get a deluge of tiny files cluttering up the target folder. Firefox doesn't save pages in archive form, but only in the old scattered form. Of course, I could simply save only the html. Maybe that's the best thing, but it loses a lot.
    The chaos of junky files cluttering up my target folder is enough to send me back to Opera, despite its limitations.

    This extension allows for web pages to saved on MHT format. <br />
    https://addons.mozilla.org/en-US/firefox/addon/8051

  • Unable to view files which are more than 4megabyte from microsoft word

    hi, i had this problem after updating to latest os for my iphone..
    my mailbox couldn't open files that are larger than 4mb anymore. whenever i tired to open the file from my iphone4, the mail app will crash.
    please help me!

    Just checked the model of card youre using by Hardware ID
    PCI\VEN_02&DEV_0002&SUBSYS_00A02&REV_0A = SB0220 SBLi've! 5. Digital,
    and I think if this is correct, you'll may find some other frustrationed owners asking the
    same question you have.
    Have you tried these drivers
    and/or
    these drivers
    About this issue you and the others are having:
    [url="http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=4670" target=_blank>See this thread[/url]
    BTW:
    You perhaps can install Audigy 2 drivers and software to your card. Here are the instructions how to do it.
    It's quite easy process. Download Audigy driver/software package (~20MB) (link is there), extract it into some directory. Download the patch (link is on Automatic Method sentence)and follow instructions how to patch the instalation package. Then installation process. I've modded my Audigy 2 to Audigy 2 Zs using a similiar method and everyting else, but GraphicMixer, works great.
    .jtpMessage Edited by jutapa on 08-24-2005 06:38 AM

  • How to delete Sharepoint Diagnostic log older than 5 months

    Hello , 
    How can I automate Sharepoint log deletion older than 5 months using powershell or C# code ?

    I ran across this code (frankly forgot where) a few years ago, originally to delete IIS logs, but I use if for everything.  It simply goes through each item in a folder and deletes by date.  I save the code below to a ps script, then call it with
    a batch file and schedule a task to run the batch file (reasoning is it is easier to schedule a task to run as a .bat file than .ps1.  Don't forget about changing the execution policy if you decide to use it on non-SharePoint servers as well.
    get-childitem -Path C:\inetpub\logs\LogFiles -recurse |
    where-object {$_.lastwritetime -lt (get-date).addDays(-7)} |
    Foreach-Object { del $_.FullName }

Maybe you are looking for