• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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