I need to zip content of a folder with the help of batch script. I need to complete this task without third party application.
Thanks in advance. Prakhar
I need to zip content of a folder with the help of batch script. I need to complete this task without third party application.
Thanks in advance. Prakhar
I know that it's probably what you don't want, but.. Maybe this will help:
"%homedrive%\Program Files\WinRAR\WinRAR.exe" a -ep1 NameThisFile.rar" "YourFolderToZip\*.*" >nul
This will zip all the files in the actual folder, so it won't zip the files from the subfolders.
Or it can look like this:
"WinRAR.exe" a -ep1 NameThisFile.rar" "YourFolderToZip\*.*" >nul
But that will work only if the executable(WinRAR.exe) is in the same folder as the batch file.