Jump to content

gocool

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    India

Everything posted by gocool

  1. hi, i would create rar from all .png files in a directory having size less than 1mb and these rar should contain present.jpg in it.If the file size of .png is greater than 1mb only that file alone is rar'ed (i.e. present.jpg should not be added to that rar).. i tried to edit the by meshing code snippets which found on the web but i couldn't achieve the result as i have very limited knowledge.. can anyone help me to get this done in a proper manner Thanks! @echo off set file="*.png" set maxbytesize=1048576 FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA if %size% LSS %maxbytesize% ( DO ( "C:\Program Files\WinRAR\WinRAR.exe" a -ibck -m5 -df "%cd%\%%~nF.rar" "%%F" "C:\Program Files\WinRAR\WinRAR.exe" a -ibck -m0 "%cd%\%%~nF.rar" Present.jpg ) ) ELSE ( exit )
  2. @gunsmokingman Thanks,that does the job Greetings.
  3. Sorry that's not what i am looking for..
  4. hi,i would like to integrate this bat script to my context menu.so,that i can perform the operation on any folder without the need of bat script being present in the directory i am working... for %%I in (*.zip) do "C:\Program Files\WinRAR\WinRAR.exe" d -ibck "%%I" "Temp" I use an application called open++ for creating context menu entry. Some alterations has to be made in the bat script so,that when i call it from context menu.The bat script should be able to get the current directory and then carry out the rest of the operation.I don't know how to do this part so,could anyone help me...
×
×
  • Create New...