- Joined
- Jul 3, 2004
- Messages
- 334
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:
When I try it in the program, it says "Run-time error '54': Bad file mode".
Here's my code:
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".