Shutting down whilst copying a file

  • Thread starter Thread starter Richard Jonas
  • Start date Start date
R

Richard Jonas

I've written a Windows Application in C#.net that runs in the
background and silently archives files to a network drive (using the
System.IO.File.Copy function).

Sometimes, users may run this application when connected to our
network via a dial-up connection. This means that files take a long
time to copy.

If users try and shut down their computer whilst a file is copying, an
error message is shown and the only way to shut down the computer is
by killing the application using Task Manager.

I would like to show the user a dialog box, asking if they want to
wait for the file to finish copying or abort the copy and shut down
their computer.

Is there any way of doing this?

Thanks,

Richard Jonas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top