Batch command to zip all files datewise

Hi,
Below are the trace files present on Solaris server.
-rw-r----- 1 oracle dba 1307 Mar 9 18:15 esapdb_j000_4563.trc
-rw-r----- 1 oracle dba 1307 Mar 9 18:45 esapdb_j000_7486.trc
-rw-r----- 1 oracle dba 1309 Mar 9 19:15 esapdb_j000_10627.trc
-rw-r----- 1 oracle dba 1309 Mar 9 19:45 esapdb_j000_14140.trc
-rw-r----- 1 oracle dba 1309 Mar 9 20:15 esapdb_j000_17142.trc
-rw-r----- 1 oracle dba 1309 Mar 9 20:45 esapdb_j000_20099.trc
-rw-r----- 1 oracle dba 1309 Mar 9 21:15 esapdb_j000_23050.trc
-rw-r----- 1 oracle dba 1309 Mar 9 21:45 esapdb_j000_25984.trc
-rw-r----- 1 oracle dba 1309 Mar 9 22:15 esapdb_j000_28618.trc
-rw-r----- 1 oracle dba 1307 Mar 9 23:15 esapdb_j000_3885.trc
-rw-r----- 1 oracle dba 1307 Mar 9 23:45 esapdb_j000_6555.trc
-rw-r----- 1 oracle dba 1309 Mar 10 00:45 esapdb_j000_11868.trc
-rw-r----- 1 oracle dba 1309 Mar 10 01:15 esapdb_j000_14565.trc
Could you pls tell the uniz command to zip all the trace files of March at once.
Appreciate your help.

Hi,
Below are the trace files present on Solaris server.
-rw-r----- 1 oracle dba 1307 Mar 9 18:15 esapdb_j000_4563.trc
-rw-r----- 1 oracle dba 1307 Mar 9 18:45 esapdb_j000_7486.trc
-rw-r----- 1 oracle dba 1309 Mar 9 19:15 esapdb_j000_10627.trc
-rw-r----- 1 oracle dba 1309 Mar 9 19:45 esapdb_j000_14140.trc
-rw-r----- 1 oracle dba 1309 Mar 9 20:15 esapdb_j000_17142.trc
-rw-r----- 1 oracle dba 1309 Mar 9 20:45 esapdb_j000_20099.trc
-rw-r----- 1 oracle dba 1309 Mar 9 21:15 esapdb_j000_23050.trc
-rw-r----- 1 oracle dba 1309 Mar 9 21:45 esapdb_j000_25984.trc
-rw-r----- 1 oracle dba 1309 Mar 9 22:15 esapdb_j000_28618.trc
-rw-r----- 1 oracle dba 1307 Mar 9 23:15 esapdb_j000_3885.trc
-rw-r----- 1 oracle dba 1307 Mar 9 23:45 esapdb_j000_6555.trc
-rw-r----- 1 oracle dba 1309 Mar 10 00:45 esapdb_j000_11868.trc
-rw-r----- 1 oracle dba 1309 Mar 10 01:15 esapdb_j000_14565.trc
Could you pls tell the uniz command to zip all the trace files of March at once.
Appreciate your help.this is a oracle forum, not a unix forum. Please close the thread and open a new thread in the correct forum.
Also you have the solution of your problem at google.

Similar Messages

  • Operating system command to zip the file

    Hi Experts,
    I got proxy to file scenario, i can place the text file successfully in reciever side, i want to zip the file in reciever side using operating system command option in reciever Communication Channel.
    Can anyone please give me the operating system command to create the zip file in reciever side.
    Kind Regards,
    Praveen.

    Hi Praveen,
    >>Can anyone please give me the operating system command to create the zip file in reciever side.
    Why OS commands and not the PayloadZipModule?
    If you need OS commands check this blog of Michal /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Update
    You can try this command too
    cmd /C "jar cMf \\<folderpath>test1.zip \\<folderpath>*.*"
    Regards
    Suraj

  • To ZIP all files into a single ZIP archive

    hi,
    Can anybody suggest me how to Zip mutiple files into single Zip archive.

    Hi,
    use Winzip :).Or jar all your files with JAVA. And then rename the
    extension to .zip. In fact a .jar file is a .zip file.
    http://java.sun.com/docs/books/tutorial/jar/basics/index.html
    Cheers!

  • One command to close all files?

    Is there a single command to close all open files?
    I've opened up a bunch of files, and if I do a Force Quit on Pages, all the files re-open automatically when I re-open Pages.
    Thanks for any help.

    HI PM,
    Are you actually doing "a Force Quit"? Or is this a vocabulary issue?
    Force Quit (option-command-esc(ape) ), which brings up the dialogue below, is intended for use only when an application is not responding, and the regular means of quitting the application are not available.
    The Quit command is the last item in the Application menu ("Pages" menu in Pages), or from the keyboard, command-Q.
    In addition to the two methods for closing all open windows in an application described in Jerry's post, there's one more: Option-click on the Close (red) gumdrop of the front window.
    Regards,
    Barry

  • Batch file extracting all files from nested archives

    I have managed to leverage a powerful
    forfiles command line utility with the mighty
    7z compression program.
    Below is a simple batch file extracting all files from nested archives hidden at any depth inside other archives and/or folders. After the extraction each archive file turns into a folder having the archive file name. If, for example, there was an "outer.rar"
    archive file containing nothing but an "inner.zip" archive with only "afile.txt" inside, "outer.rar" becomes "...\outer.rar\inner.zip\afile.txt" file system path.
    @echo off
    rem extract_nested_archives.bat
    move %1 "%TMP%"\%2
    md %2
    7z x -o%1 -y %TMP%\%2
    del "%TMP%"\%2
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE extract_nested_archives.bat @path @file"
    ARCHIVES ARE DELETED DURING THE EXTRACTION! Make a copy before running the script!
    "7z.exe" and "extract_nested_archives.bat" should be in folders available via the %PATH% environment variable.
    The first parameter of extract_nested_archives.bat is the full path name of the archive or folder that should be fully expanded; the second parameter is just the archive or folder name without the path. So you should run "c:\temp\extract_nested_archives.bat
    c:\temp\outer.rar outer.rar" from the command line to completely expand "outer.rar". "c:\temp" must be the current folder.
    Best regards, 0x000000AF

    Incredibly useful!  Thank you so much.  I did make a couple of small changes to make the script a little easier to use from the end-user perspective.
    First - I don't like making the user input the redundant second parameter, so I added this snippet which extracts it from the first parameter.  The first line of the snippet enables delayed expansion so that special characters in our file name don't
    break anything.  The second line pulls the parameter into a variable, and the 3rd line uses delayed expansion on that new variable.  Before implementing delayed expansion I had problems with file paths which included parentheses.
    SetLocal EnableDelayedExpansion
    Set SOURCE=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    Anyway once that was done, I just used %FILENAME% everywhere in the script instead of
    %2 (making sure to correct quotes as needed)
    This way, to run my script all you need to run is:
    C:\temp\extract_nested_archives.bat C:\temp\Archive.zip
    Second - I didn't want to modify the Windows environment variable.  So I replaced
    7z with "%PROGRAMFILES%\7-zip\7z.exe"
    I also replaced extract_nested_archives.bat with "%~f0" (which represents the full path+filename of the current script).
    Here is my full script now.  Tested on Windows 8 with the 64-bit version of 7-zip installed:
    @echo off
    Setlocal EnableDelayedExpansion
    Set source=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    move /Y %1 "%TMP%\%FILENAME%"
    md "%FILENAME%"
    "%PROGRAMFILES%\7-zip\7z.exe" x -o%1 -y "%TMP%\%FILENAME%"
    DEL "%TMP%\%FILENAME%"
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do (
    forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE "%~f0" @path @file"

  • How to zip all the files generated using file adapter

    Hello Everyone,
    I have a scenario in place where i split a message into multiple messages. I used to generate multiple file using the file name present in the payload of the splitted message using variable substitution.
    This is working fine.
    Now the requirement has changed and i want to zip all these file and create a single zip file.
    I think it could be done using run OS command option in file adapter, but have no clue how to do it.
    Please help me.
    Regards
    Rahul Nawale

    Hi,
    you can use on of the command line ZIP utilities:
    http://www.winzip.com/prodpagecl.htm
    http://www.7-zip.org/
    then when your file adapter puts the file
    you can use commnad line to zip the files
    Regards,
    michal

  • Batch command not closing files automatically

    Hi,
    Photoshop CS6
    Windows 7
    How do you make Photoshop automatically save and close a batch of raw files during batch runs?
    I'm just now trying the File>Automate>Batch command. I want to run an action on a bunch of .NEF raw files.
    How do you get rid of all the dialogs and just make the thing do the action? i.e., just OpenTheRawFile>RunTheAction>SaveAndClose>DoTheNextFile
    First it opened them all up one by one in Camera Raw and the ACR window stayed open until I clicked Open Image. So I checked Suppress File Open Options Dialog in the Batch command. That fixed that problem. But Batch left all the files open in Photoshop, didn't close any of them.
    So I went back into my action and added a file close. While recording the action I clicked Yes to save changes before closing the file.
    However, the batch now pops up that same dialog box after each file asking me if I want to save the file before exiting. This defeats the whole purpose of the Batch command.

    Do not use Batch, use one of the available Image Processor scripts instead.  If your RAW files have been converted before and have associated ACR setting, The RAW files will be converted  using these settings by ACR and ACR will bypass displaying its dialog. If the RAW files have no associated ACR settings the Image Processor scripts have an option that you can use to have the Image Processor open the first RAW file via ACR  where ACR will open its dialog. The settings you set will be used to convert all the RAW files processed in the current run of the Image Processor.
    Image Processor Pro is available on the web for downloading and is more flexible and powerful then the Image Processor that is shipped with Photoshop. You can set it up to save as many Image File for each file processed. The size and File Type you need.
    You can have the Image Processor Pro include in its process an action you create for file that are saved. It can be the same action or different action for each of the file save you set up.

  • Can't select files when using Automate batch command

    Hi all,
    I'm having a huge problem here.
    I am working with CS3 on a mac (leopard).
    I batch process (when applying actions) all the time using the Automate/Batch process command.
    I have been doing this for years on my computer but all of a sudden it has developed a problem. When I bring up the batch command and select a source folder, I am not able to select any of the files (jpgs/tiffs) . They are not highlighted for me to select them.
    So far I have deactivated and re-installed CS3 on my computer. Still not working. So, I have downloaded CS3 onto my laptop and taken the files from my desktop onto the laptop and the problem is the same. Like I said, this has just started happening for no reason after years of working fine.
    Please, please, can anyone help.
    Thx.
    Richard.

    I hardly use the feature, so I may have missed some change, but »Folder« seems to indicate that You are to select a Folder, not Files.

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • Batch import of zipped and other types of files

    Hi,
    Has anyone out there try to do a batch import of zipped or other types of files yet?

    Kelly,
    Batch import is now possible with release 3.0.8. See the new content area APIs in the PDK.
    Regards,
    Jerry
    null

  • Site re-do -- applying commands to all files?

    Newbie here; please be kind.
    I've inherited a site with a plethora of
    similar-but-different templates. I'd like to be able to detach all
    files from their templates and clean them up. Is there capability
    within Dreamweaver (8) to apply a command e.g.
    modify/templates/detach from template -- to all files? I haven't
    found this with the app, nor any extensions.
    Thoughts appreciated.

    > Yeah, I guess "plethora" is a bit vague. There are 14
    templates and just
    > under
    > 1000 .htm or .html files. If I had to guess, half or
    less of them are
    > template-driven.
    YIKES. Using templates on a site with 1000 files (even 300
    files) is like
    putting bamboo shoots under your fingernails!
    > Maybe a different way of looking at the collection: is
    there a way to
    > report
    > which modules are under the control of which templates?
    I just know if I
    > make
    > some update, I get a count of the files that are updated
    as a result, but
    > I
    > don't see a high level "Template Report" kind of thing.
    If you do a sitewide search for each template name, you will
    return all
    child pages of that template. Or, you can grab this -
    For templates this extension can help:
    http://www.massimocorner.com/dreamweaver/utilities/template_report.mxp
    It reports pages associated with templates and editable
    regions inside all
    pages
    to make that job easier.
    > Extra credit: is it straightforward to change the
    template being used?
    > and their fields are identical (or close enough)
    Assuming that their EDITABLE REGIONS ARE IDENTICALLY
    NAMED....
    Heh - that's easy. First, make a backup of the site for
    safety's sake.
    Change template1.dwt to template1old.dwt, and REFUSE THE
    UPDATE. Then
    change newtemplate1.dwt to template1.dwt. Finally, open one
    of this
    template's ex-child pages, and do MODIFY | Update Pages...,
    and update all
    pages. Bada bing, bada boom.
    If their editable regions are NOT identically named, then
    it'll be much more
    difficult. Did I say MUCH MORE?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Sbles" <[email protected]> wrote in message
    news:[email protected]...
    > Yeah, I guess "plethora" is a bit vague. There are 14
    templates and just
    > under
    > 1000 .htm or .html files. If I had to guess, half or
    less of them are
    > template-driven.
    >
    > Maybe a different way of looking at the collection: is
    there a way to
    > report
    > which modules are under the control of which templates?
    I just know if I
    > make
    > some update, I get a count of the files that are updated
    as a result, but
    > I
    > don't see a high level "Template Report" kind of thing.
    >
    > Extra credit: is it straightforward to change the
    template being used?
    > Let's
    > say there's Template1 and Template1a and their fields
    are identical (or
    > close
    > enough). Is there a way to just change all
    Template1a's-owned files to be
    > owned
    > by Template1?
    >
    > Which there was a nice MySQL schema behind DMX -- I
    might shoot myself in
    > the
    > foot making the updates, but at least I'd have something
    to try.
    >
    > Thanks for your help!
    >

  • How to move all files from a folder for a user to a centralized folder on a core server

    Hello,
    I'm curious if there is a batch file that can be made to move the contents that are setup like this....
    I'm having to redo a TS cluster and I'd like to make a batch file script that can be executed that moves the contents of say 'jsmith's local desktop profile @ \\NGTTS1\users\jsmith to a centralized folder on our roaming desktop profile server that saves
    all of the files for the desktops @ \\NGTFS1\users\jsmith.
    The problem I have is no matter what I tell users to save there files to our Y drive that is a folder that is synced across all 6 of our TS servers, users still store files on there desktops, so as you can imagine if one day they are on one server, then
    next day they could be on another and there files aren't the same.... hence the reason why I want to move all there files to the centralized server so when I redo the profiles from scratch on the TS server in the farm they suck files from the core server and
    have all of the files they are used to having.... 
    Now I know I can do this with a MOVE command I've just never done one to this exact.
    Hopefully someone knows the command to move all the contents of one folder on one server to the folder on a different server. I've already got the bulk of the coding done of the .bat script I just don't know this move command:
    would it be this:
    move \\NGTTS1\users\jsmith *.* \\NGTFS1\users\jsmith
    any help would be appreciated, I'm sure this is a easy command to do!
    This is the coding I have so far....
    @echo off
    color 0A
    title Moving Local Profile folder to Centralized Profile Folder on Core Server.
    :start
    echo Welcome, %USERNAME%
    echo What would you like to do?
    echo.
    echo 1. Moving Local Profile folder to Centralized Profile Folder on Core Server
    echo. 
    echo 0. Quit
    echo.
    set /p choice="Enter your choice: "
    if "%choice%"=="1" goto Move-user-profiles
    echo.
    if "%choice%"=="0" exit
    echo Invalid choice: %choice%
    echo.
    pause
    cls
    goto start
    :Move-user-profiles
    echo.
    set /p profile="Enter user profile: "
    move "\\NGTTS1\users\%profile%" *.* "\\NGTFS1\users\%profile%"
    echo moving files from local profile folder to FS1 profile server, stand-by...
    echo.
    goto cancel-special 
    :cancel-special
    set /p cancel="Type cancel to stop action: "
    if not "%cancel%"=="cancel" exit
    cls
    echo Action is cancelled.
    echo.
    pause
    exit

    In Windows we would do this using Group Policy.  There is a Policy setting that csn move the Desktop folder to any server you want to move it to.  Once set it will automatically do this for you.
    You should post in the Group Policy forum to find out how we use Group Policy to manage users profiles in Windows.
    You cannot use a script to relocate a users Desktop folder.  The desktop is locked by the time the users logon script is finished running.  It the desktop and profile are already being managed by Group Policy then this can only be done with GP.
    There are also numerous issues associated with deployment and re-deployment that you need to address  Post your questions in the Winows Deployment forum to get assistance with deployment issues.
    Again - want you are asking is not generally possible because of how Windows is designed.  This would only likely work on a simple system or on a stand alone PC and then only under a very limited set of circumstances.
    Use GP folder redirection to do this.  For deployment use Deployment Forum and for TS specific issues post in the RDS forum. 
    All of  this needs to be considered correctly for TS users inn a TS Cluster environment. (TS Cluster?? - not sure what you mean by that.
    ¯\_(ツ)_/¯

  • Photoshop CS6 - Batch function will not save files

    OK, I have used the "Automate/Batch" function well over a hundred times, so this situation (first time using it in CS6) is VERY frustrating!
    Running Adobe CS6 extended v. 13.0.1 x32 on a Win XP sp3 OS.
    I have a slew of photos that need nothing done except to resize from the native file size to 6 in x 4 in @ 150 ppi and save into a new folder (to not override the original).  I have recorded the action multiple times now and each time I run the action, the files do not save! Here are the various parameters I've used:
    Attempt #1:
         Action Steps Recorded -
    Open
    Save for web (set size parameters here)
    Close
          Batch settings -
    Play Set: correct folder selected; Action: correct action selected
    Source: folder - selected folder where native files are located (on desktop)
    NO checkmarks next to any options
    Destination: folder - selected folder where small files should be saved (on desktop)
    NO checkmark on override action
    Did not change file naming parameters
    Result #1 - DID NOT SAVE FILES
    Attempt #2:
         Action Steps Recorded -
    Open
    Save for web (set size parameters here)
    Close
         Batch settings -
    Play Set: correct folder selected; Action: correct action selected
    Source: folder - selected folder where native files are located (on desktop)
    Cehckmark override Action "Open" commands
    Destination: folder - selected folder where small files should be saved (on desktop)
    NO checkmark on override action
    Did not change file naming parameters
    Result #2 - DID NOT SAVE FILES
    Attempt #3:
         Action Steps Recorded -
    Open
    Save for web (set size parameters here)
    Close
          Batch settings -
    Play Set: correct folder selected; Action: correct action selected
    Source: folder - selected folder where native files are located (on desktop)
    Checkmark override action "Open" commands
    Destination: folder - selected folder where small files should be saved (on desktop) 
    Checkmark override action "Save As" commands
    Did not change file naming parameters
    Result #3- DID NOT SAVE FILES
    Attempt #4:
         Action Steps Recorded -
    Open
    Image Size (set parameters here)
    Save as (set folder location here)
    Close
         Batch settings -
    Play Set: correct folder selected; Action: correct action selected
    Source: folder - selected folder where native files are located (on desktop)
    Checkmark override Action "Open" commands
    Destination: folder - selected folder where small files should be saved (on desktop) 
    NO checkmark on override action
    Did not change file naming parameters
    Result #4- DID NOT SAVE FILES
    Attempt #5:
         Action Steps Recorded -
    Open
    Image Size (set parameters here)
    Save as (set folder location here)
    Close
           Batch settings - 
    Play Set: correct folder selected; Action: correct action selected
    Source: folder - selected folder where native files are located (on desktop)
    Checkmark override action "Open" commands
    Destination: folder - selected folder where small files should be saved (on desktop) 
    Checkmark override action "Save As" commands
    Did not change file naming parameters
    Result #5- DID NOT SAVE FILES
    Please help!  This has never been a problem before CS6 and I truly am at my wits end trying to figure out why the files will not save.  I have several hundred files that I need to run this on, so doing it individually is not an option.
    Thanks in advance for any and all insights!

    I'm having a problem with Automating > Batch as well. Strange enough, I did a batch of other photos and it worked fine. Selecting a new set of folders is not working at all; the files simply pop open and then close but the destination folder remains empty. It also doesn't appear the actions are occuring since I don't see them highlighting as the automation runs. I have no idea why it would work then not. BTW, "Override Action "Save As" is unchecked.
    ~CG
    UPDATE: I put a "save as" command at the beginning of the action, then checked the "Override Action "Save As" box and it somehow works now, but not before stalling on an image (normally the last in the folder) and complaining that the image was being used in another program. The only other program opened was Bridge so I'm unsure why it had a problem. I closed both programs and ran the automation with nothing else opened and it worked ... ?? Confused, but not complaining (for now).

  • I want to delete all files in RECYCLER.

    Don't want give all disks, a directories, search all files here and delete their. I want get a API command "Empty RECYCLER.". How i do that?

    Sergey:
    Try the attached example.  Roberto has already laid it out for you.  You need to add shell32.lib to your project, #include windows.h and shellapi.h in your .c file, and call SHEmptyRecycleBin().
    From your previous posts, it sounds like you already have the Windows SDK/Win32 API installed, but if this wasn't done correctly or completely, you'll have problems.  Also make sure that you're using the SDK that came with CVI and not one that came with some other product like Visual Studio.
    Here's all the code, but I also included the .c and .prj files to make it easier.
    #include <windows.h>
    #include <userint.h>
    #include <shellapi.h>
    main()
     HRESULT emptyResult;
     emptyResult = SHEmptyRecycleBin(NULL, NULL, 0);
     if (emptyResult != S_OK)
      MessagePopup ("Recycle Bin Error", "Error emptying recycle bin");
    Attachments:
    EmptyRecycle.c ‏1 KB
    EmptyRecycle.zip ‏2 KB

  • Key Command for Selecting All in Stack?

    - Hi, I'm wondering if there is a key command that I missed that allows you to select all items in a stack when it is collapsed?
    I'm mostly using Bridge for the Stacks feature. I actually prefer to use cataloging programs for DAM. But shooting HDR, stacks are a must!
    But when I want to do things with the images in a stack, such as deleting them all, opening in Photoshop (individually or to merge), etc., it only selects the top image by default.
    I must be missing something. It's a drag to have to open/close all the time.
    And a separate but related issue:
    - Does anyone know why all stacks are removed when you do a Batch Rename on a set of photos?
    I let Photoshop churn for 30min. + on the 'combine HDR/Panorama into stacks' command. Got all my HDR sets grouped nicely as stacks. Then decided to batch rename them and presto - no more stacks! Had to do it all over again!!!

    Hi Kenny,
    To apply a command to all photos in a collapsed stack, you must select them all by clicking the stack border, not the top image. See
    Stack files in Bridge Community Help.
    I'm not sure about the batch rename issue that you describe. Maybe someone else can chime in on that.

Maybe you are looking for