Results 1 to 2 of 2

Thread: Cancel shell command

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49
    If i created a shell command that call a batch file, and that batch file is composed of command that copy data on a cd, is there a way , while the process is running, to cancel the process of your batch file(Shell) i know in dos, it's the CTL-BREAK, but how can i send that to my process using VB.
    thanx

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    Shell() is asynchronous so once you've said "shell this" it's done and you can't interact (very easily) with it.

    Notice that the return value of Shell() is a long...that's the process ID, so you may be able to use that to try to kill it...

    Good luck!

    Toot
    Some cause happiness wherever they go; others, whenever they go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width