1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

stopping batch files

Discussion in 'Visual Basic ( VB )' started by kumarangopi, Feb 14, 2007.

  1. kumarangopi

    kumarangopi New Member

    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?
  2. shabbir

    shabbir Administrator Staff Member

    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.

Share This Page