Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   stopping batch files (http://www.go4expert.com/forums/stopping-batch-files-t3003/)

kumarangopi 14Feb2007 14:33

stopping batch files
Using VB Can we stop a batch file which is running?

contents of vbtest.bat
start c:\myexample.exe

contents of myexample.exe
check for username and password
if password is wrong
I should stop that vbtest ie dir should not be executed.Any ideas or questions let me know?

shabbir 14Feb2007 15:20

Re: stopping batch files
All you can do is end the batch file but it depends on where it will quit. All you have to do see use the FindWindow API and sent that batch file window the kill signal.

All times are GMT +5.5. The time now is 03:37.