no more bug

On my previous post, I actively in developing some programs for private server online gaming especially Ran Online.

I have release new launcher with autopach but there a two feedbacks said that the launcher will download the new patch but it not extract the patch file. I am using internal “extrac32.exe” in Windows to extract the patch file in CAB file format. CAB file format is by far compress as little size as possible than any compression method out there.

I have to open my Visual Basic Express Edition to find out why the bug cant extract the cab file into destination folder. On Saturday I discover that “extrac32.exe” cannot recognize a folder with spaces in it. So in order to make it recognize as a folder, I have to put quote(“) in Process() as a argument.

Dim program As New Process()
program.StartInfo.WindowStyle = ProcessWindowStyle.Hidden program.StartInfo.CreateNoWindow = True program.StartInfo.FileName = “extrac32” program.StartInfo.Arguments = “/e /y /a /l ” & Chr(34) & Application.StartupPath & Chr(34) & ” ” & Chr(34) & Application.StartupPath & “\patch.cab” & Chr(34) program.Start() program.WaitForExit()
program.Close()
Now all the problem solves and the user are happy, it will extract to its destination folder.

Text posted at 11:23 AM (4 years ago) | Permalink