Alright, I’m having a little trouble getting 7-zip to execute from VB.
Here’s my current code:
ZipFileName = "\\network\path\PDFs\Test.zip "
PathToPDFs = "\\network\path\PDFs\*.pdf"
Arg1 = "a -tzip"
Process.Start("C:\Program Files\7-Zip\7z.exe" + Arg1 + Zipfilename + PathToPDFs)
The error I keep getting is The system cannot find the file specified and Win32Exception was unhandled
I know my path is correct and there are PDFs in that directory.
Any suggestions?
You have to use this
First argument must be ONLY executable, while second one must be
ProcessInfoor a string with arguments.Tkae a look at this Microsoft page.