dbTalk Databases Forums  

Killing a DOS window

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Killing a DOS window in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Patrick Rock
 
Posts: n/a

Default Killing a DOS window - 11-14-2004 , 10:35 AM






I am trying to figure out how to programatically kill a locked DOS
window called from a Fox program in WIN 2K.

One program (which starts running about 1 AM) makes a series of FTP
calls, and occasionally the DOS window locks up while in progress.
The only way to kill it at the moment is to physically shut down the
window (which means that someone finds it about 6 AM and does so,
which leaves the program hours behind schedule).

I am able to find the DOS window via another Fox program, but I
cannot send it a simple "Close" command, as the DOS window does not
seem to accept outside commands from Windows.

Is there a simple (or even complicated) method to do this?

Reply With Quote
  #2  
Old   
Techo Guy
 
Posts: n/a

Default Re: Killing a DOS window - 11-14-2004 , 12:31 PM






Basically, there are 3 methods.

1. Find out why the Dos FTP locks and cure it.
2. Write a 32bit program, in VB or VFP that can sense the locked
process and then close the Window for you.
3. (My preferred method) Write a VFP program that uses a decent FTP
library (we use Marshallsoft) to implement the FTP process.

Have fun.

On Sun, 14 Nov 2004 16:35:20 GMT, Patrick Rock <rockpf (AT) nospam (DOT) net>
wrote:

Quote:
I am trying to figure out how to programatically kill a locked DOS
window called from a Fox program in WIN 2K.

One program (which starts running about 1 AM) makes a series of FTP
calls, and occasionally the DOS window locks up while in progress.
The only way to kill it at the moment is to physically shut down the
window (which means that someone finds it about 6 AM and does so,
which leaves the program hours behind schedule).

I am able to find the DOS window via another Fox program, but I
cannot send it a simple "Close" command, as the DOS window does not
seem to accept outside commands from Windows.

Is there a simple (or even complicated) method to do this?


Reply With Quote
  #3  
Old   
Paul
 
Posts: n/a

Default Re: Killing a DOS window - 11-15-2004 , 08:08 AM



One of the Windows Resource packs (I think) has a utility called 'kill'.
You can use it to kill tasks. e.g. kill myftp.exe

You could even use a scheduled task.
e.g. AT 01:00 /every:blabla "kill myftp.exe"

Techo Guy wrote:
Quote:
Basically, there are 3 methods.

1. Find out why the Dos FTP locks and cure it.
2. Write a 32bit program, in VB or VFP that can sense the locked
process and then close the Window for you.
3. (My preferred method) Write a VFP program that uses a decent FTP
library (we use Marshallsoft) to implement the FTP process.

Have fun.

On Sun, 14 Nov 2004 16:35:20 GMT, Patrick Rock <rockpf (AT) nospam (DOT) net
wrote:


I am trying to figure out how to programatically kill a locked DOS
window called from a Fox program in WIN 2K.

One program (which starts running about 1 AM) makes a series of FTP
calls, and occasionally the DOS window locks up while in progress.
The only way to kill it at the moment is to physically shut down the
window (which means that someone finds it about 6 AM and does so,
which leaves the program hours behind schedule).

I am able to find the DOS window via another Fox program, but I
cannot send it a simple "Close" command, as the DOS window does not
seem to accept outside commands from Windows.

Is there a simple (or even complicated) method to do this?



--
Paul


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.