I want to use rar.exe
via command line to extract all files in all archives in a folder then delete all the archives automatically if they extracted successfully? I tried -df
and -dr
to no avail. Seems like those may only for deleting the files if you're adding them to an archive.
Right now I'm using (c#):
string.Format("e -p{0} \"{1}\" *.* \"{2}\"", pass, fi[n].FullName, fi[n].DirectoryName)