• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Shelling WC3 and WE

Status
Not open for further replies.
Level 8
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:
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".
 
Status
Not open for further replies.
Top