1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Should Ctrl-C interrupt a COPY?

Discussion in 'Support' started by vefatica, Apr 9, 2011.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    Ctrl-C doesn't seem to interrupt a COPY. In my test, I copied a 500MB file from one drive to another (simply, "COPY 500meg y:\") ... about an 8-second job. I held Ctrl-C the whole time; it was not interrupted.

    Originally (and ill-advisedly) I started a 500MB copy to a share on an internet VPN and found I couldn't stop it.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    In 4DOS it would; but then 4DOS was doing most of the work, read-write, read-write, read-write, until done. In TCC I think it's just a single API call, CopyFileEx() or whatever.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,859
    Likes Received:
    83
    That's Windows -- the copy is done inside a (non-interruptable) Windows API.

    This is not actually 100% true -- there are some types of COPY (like /A) that copy in blocks, and others (like /G) that do a callback and can be interrupted.
     

Share This Page