how do I close a cmd.exe window automatically?

Ken Ray kray at sonsothunder.com
Fri Aug 23 16:27:00 EDT 2002


Rich,

The problem is the 'shell' command: it is a "blocking" command - i.e. it
will launch a process and then will wait until that process is closed before
continuing. You might want to look into "open process" instead.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Rich Mooney" <tech at paynesparkman.com>
To: "MetaCard Mail List" <metacard at lists.runrev.com>
Sent: Friday, August 23, 2002 2:40 PM
Subject: how do I close a cmd.exe window automatically?


> I have a button which uses the following command:
> get shell("notepad displayalarm.txt")
>
> I'm using it to open a file generated with my software in Notepad on Win2k
> Pro.
> This works fine but my stack is frozen until I close the cmd.exe window.
> Closing Notepad also unfreezes the stack but, I want the user to be able
to
> view this file while the application continues to run automatically and I
> don't want them to have to remember to close the command window.
Otherwise,
> they will eventually forget and walk away from the computer leaving all
> automated functions suspended.  I tried adding the line get shell("exit")
> but, the stack freezes on the previous line and never sees that exit
command
> until after I close the window manually.  Any ideas?
>
> Rich Mooney
> Payne Sparkman Mfg.
> shop at paynesparkman.com
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>




More information about the metacard mailing list