• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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