X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 May 2015 04:51 AM by  anon
FILE_COPY interrupting
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:7
New Member


--
27 May 2015 04:51 AM
    Hi, Does anyone know if there is a way to interrupt a large FILE_COPY (or FILE_MOVE) ? I have a situation where there could be a large number of files being copied, but I need to allow an operator to interrupt it. The only solution I can think of is spawning the process out to an OS copy command, allowing me to display a 'cancel' dialog to the operator'. Thanks

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    28 May 2015 09:19 AM
    Hello Lee, Your best bet would be to use SPAWN to issue the command to copy the file and then you can interrupt the process with by pressing ctrl+c in the terminal window that appears. You may want to use the IDL command CD to get to the correct directory for using SPAWN. As a side note, within IDL ctrl+c also typically stops processes, but it does not work for file_copy.
    You are not authorized to post a reply.