Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Main Program Return From Execute File Command

Author
Message
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 7th Mar 2004 20:58
Thanks for the help from the UK.

The execute file command now calls the defined program (notepad.exe), but doesn't return to the program containing the execute file command (test.exe).

Being specific, my main program (test.exe) contains this command: execute file "notepad.exe","","c:windows",1

(test.exe) executes the execute file command correctly, transfers control and activates (notepad.exe), but the optional "flag" set in the execute file command should serve as a "wait until completion" of notepad.exe and cause a return to (test.exe) after closing of the notepad.exe. It doesn't, the computer just returns to the Windows XP desktop, with a menubar icon indicating the "test.exe" is still active.

Thanks for your patience.
MrNick
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location:
Posted: 8th Mar 2004 21:40 Edited at: 8th Mar 2004 21:51
i heard that a db program auto terminates when there is a paramiter mismatch or a syntax error in it.
your code:



Might have an error in "c:windows" ("and i said might") you might want to change it to "c:\windows\" but i'm not sure


Make games!
MrNick
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location:
Posted: 9th Mar 2004 17:26
never mind... I fingered it out.
When your program performs the command, it reaches the end and then it terminates.
So I suggest you change your code to:


And tell me if you have problems


Make games!
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 13th Mar 2004 16:50
MrNick:

Thanks. I'll try it.
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 14th Mar 2004 04:38
MrNick - It works. Thanks
IzzY
20
Years of Service
User Offline
Joined: 13th Mar 2004
Location: ky
Posted: 2nd Apr 2004 09:06
I am having the same problem....I tried your code but it dosn't send me back to the main screen. Only terminates the application.

The Wizard Of Iz
Boo
20
Years of Service
User Offline
Joined: 29th Feb 2004
Location:
Posted: 2nd Apr 2004 17:45
IzzY:

Try this . . .

execute file "notepad.exe","","c:\windows",1

Login to post a reply

Server time is: 2024-09-22 04:38:08
Your offset time is: 2024-09-22 04:38:08