#1
Shelling WC3 and WE
Ok, I'm making a cool WC3 tool, but I have a problem. I am using VB6, and I'm having problems shelling the Warcraft III.exe and worldedit.exe.Here's my code:
Open Trim(CurDir) & "\Data\Paths\War3P.dat" For Input As #1
Print #1, War3Path.Text
Close #1
Dim Play As String
Play = Shell(War3Path.Text, vbMinimizedNoFocus)When I try it in the program, it says "Run-time error '54': Bad file mode".