Jump to content

run dos window / program


tom13
 Share

Recommended Posts

Hi, I'm using this code to run a server application:

Run("C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe")

But when I run it, the window opens and 1 ms later quits immediately again, and the process has terminated too.

It's a dos/cmd program.

anyone knows how to fix this?

Link to comment
Share on other sites

  • 10 months later...

As this is a very old post, I'm guessing that this has already been resolved. I also had a similar issue. I found a post elsewhere that lead to my solution somewhere on here (but don't remember exactly where)

Global $WARCRAFT1PATH = "C:\WARCRAFT"

    local $var
    $var = "CD " & $WARCRAFT1PATH
    Run(@COMSPEC & " /k Dir C:\")
    
    WinActive("cmd.exe", 1)
    sleep (100)
    Send ($var,1)
    send ('{ENTER}')
    Sleep (100)
    Send ("war",1)
    Sleep (100)
    send ('{ENTER}')

;; the program will run, do the following to exit ms dos prompt

    WinActive("cmd.exe", 1)
    Send ("exit",1)
    Sleep (100)
    send ('{ENTER}')
Edited by hades480bc
Link to comment
Share on other sites

As far as i see, the exe is launched...

So to me, thats a error from the exe file that you are calling.

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

Hi, I'm using this code to run a server application:

Run("C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe")

But when I run it, the window opens and 1 ms later quits immediately again, and the process has terminated too.

It's a dos/cmd program.

anyone knows how to fix this?

DOS programs. Sometimes you need to run them through the command prompt to work properly.

You could do it like hades480bc's example or make a batch file

C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe

and execute that batch file.

[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...