Hi all,
I am invoking dos using
system 'start cmd /k echo Welcome'
in my script
Now I want following:
If user types exit on does screen
{
do something
}
How to check whether user types 'exit' on dos screen.
Also I want
If user closes the cmd window (by clickin 'x')
{
do something
}
How to do that?
Thanks & Regards,
Sanket Vaidya
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________
This e-mail message may contain proprietary, confidential or legally privileged
information for the sole use of the person or entity to whom this message was
originally addressed. Any review, e-transmission dissemination or other use of
or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you have received
this e-mail in error kindly delete this e-mail from your records. If it appears
that this mail has been forwarded to you without proper authority, please
notify us immediately at [email protected] and delete this mail.
_____________________________________________________________________