I use Sys_Shell to execute a "dos batch file"
Such batch file namely "auto.bat"
would contain data like
*******************************
net use \\print_server\printer1
copy xyz.dat \\print_server\printer1
*******************************
(xyz.dat contain typical txt data to be printer by "printer1"
in most cases, such operation resulted successfully and I am
very please with the result. where printer1 just printing out the
xyz.dat's data, typically 10 to 20 line of texts
However, from time to time, when "\\print_server" a physical pc
itself is experiencing problem or off line. resulting in a dos prompt window
loking like in a lockup stage and no doubt the entire Alpha5 just wait to see
and all other print job in queue andnot going anywhere/
Since the quality of such operation/execution is now under a dos prompt
and looking like it is beyond Alpha's control?
How can I get a proper ackowledgement back from "system? or pc?"
to tell me if such operations is successfull.
Furthermore, while "dos prompt" is hang with the auto.bat being executed
and waiting, such xyz.dat file being "locked" and therefore I am not able
to brutally force delete and forget about the job.
And lastly how to "force close" the dos prompt operation, which is partilally
hang or looking like in a lock up stage awaitng \\print_server\printer... response.
I hope I am able to explain my problem,
Appreciate anyone's assistance,
Ken Tjia
AM/PM
Canada
Such batch file namely "auto.bat"
would contain data like
*******************************
net use \\print_server\printer1
copy xyz.dat \\print_server\printer1
*******************************
(xyz.dat contain typical txt data to be printer by "printer1"
in most cases, such operation resulted successfully and I am
very please with the result. where printer1 just printing out the
xyz.dat's data, typically 10 to 20 line of texts
However, from time to time, when "\\print_server" a physical pc
itself is experiencing problem or off line. resulting in a dos prompt window
loking like in a lockup stage and no doubt the entire Alpha5 just wait to see
and all other print job in queue andnot going anywhere/
Since the quality of such operation/execution is now under a dos prompt
and looking like it is beyond Alpha's control?
How can I get a proper ackowledgement back from "system? or pc?"
to tell me if such operations is successfull.
Furthermore, while "dos prompt" is hang with the auto.bat being executed
and waiting, such xyz.dat file being "locked" and therefore I am not able
to brutally force delete and forget about the job.
And lastly how to "force close" the dos prompt operation, which is partilally
hang or looking like in a lock up stage awaitng \\print_server\printer... response.
I hope I am able to explain my problem,
Appreciate anyone's assistance,
Ken Tjia
AM/PM
Canada
Comment