Tuesday, May 22nd 2012, 2:08am UTC+2

You are not logged in.

  • Login
  • Register

abcuser

Unregistered

1

Tuesday, January 13th 2009, 5:35pm

Using Console Application - when start button is pressed - how to stop window to see result

Hi,
using Console Application. When I click on "start" button the ms-dos window is displayed and commands are executed, but after that window closes. The problem is that window closes so quickly that I can't catch what is displayed on screen. So for every interaction I compile to jar and execute file from CMD. Is there any way I could see the result without windows closing down so quickly?
Regards

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

2

Tuesday, January 13th 2009, 10:09pm

MsgBox or sleep are your friends!

Hi,

why not enter

Source code

1
msgbox "the end", vbInformation


or

Source code

1
sleep(2000) ' wait for 2.000ms


as last command of your code?

Ciao!

A1880

Rate this thread
WoltLab Burning Board