need a script.. RRS feed

  • Question

  • Hi,

    i have a script regarding the file to move on the another server..

    Actually i have been taking a backup of mah oracle database and i want the huge file to be compressed automatically and moved to my another server disk.

    i am using my windows platform for this.

    But it should pic the database file from the location and compressed first aftr that it should be moved automatically to the another server of my folder

    so here is the script...

    @echo off

    For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)

    robocopy D:\test C:\Backup\%mydate% /COPY:DAT /V /XO /NJH /NP /R:1000 /W:10

    7z u -mx9 "C:\Backup\%mydate%.7z" "C:\Backup"

    rmdir C:\Backup\%mydate%\ /Q /S


    i want the script to compress not with 7zip....i want to use peazip for this.

    so kindly help how would i do the remaning step with peazip for the compress rthr thn using 7zip

    Regards ,


    • Edited by Raxora Friday, June 24, 2016 7:13 AM error in the script need some changes..
    Wednesday, June 22, 2016 11:38 AM


All replies