使用WinRar压缩文件夹并移至另一个目录vb.net

时间:2022-05-11 09:32:23

is there anyway to compress a folder to a .rar and move it to another directory? I have tried doing it from a vb.net application and by writing a batch file to do so but im not sure on the contents of the file. Can you help please?

无论如何将文件夹压缩到.rar并将其移动到另一个目录?我试过从vb.net应用程序和编写批处理文件这样做,但我不确定该文件的内容。你能帮帮忙吗?

1 个解决方案

#1


0  

Process.Start("""DESTINATION TO WINRAR""", "a -afrar -m5 -ed -pPASSWORDHERE -r -ep1  """ & WHERE YOU WANT TO SAVE THE FILE & """ ""DIRECTORY TO BACKUP*""")

#1


0  

Process.Start("""DESTINATION TO WINRAR""", "a -afrar -m5 -ed -pPASSWORDHERE -r -ep1  """ & WHERE YOU WANT TO SAVE THE FILE & """ ""DIRECTORY TO BACKUP*""")