-- I'm currently trying to validate a server address via VB4-16bit.
I'm shelling out a DOS .bat file containing the following:
"ping serverid > S:\VBDEVE~1\INTERF~2\!ping!.res"
I have the usual 'round the houses' code to check when the task has
completed, this works and I can then read the 'piped' file to dicover
nuggets of information such as
"Bad IP address server."
No problem so far.
Trouble is, after about 8 test runs of the program I happened to change
application via ALT+TAB and discovered lots of DOS windows still happily
sitting there, cluttering up the computer.
Anyone know how to shell a DOS program and GUARANTEE to close the window on
completion? Under WIN95 and NT ?
NB I do not want to be checking boxes on shortcuts etc to close on exit,
not unless I can do it via code as this will run on an unattended system
and nobody will be there to click the mouse.
Alternatively, how do I PING a server name via VB?
remove NOSPAM to reply via email
regards,
Roger