Copying a file that is open?

  • Thread starter Thread starter Paul Bromley
  • Start date Start date
P

Paul Bromley

This may seem a stupid question, but is it possible to copy a file that is
open? I have written an application to dispaly TIFF, RTF and other file
formats. I now need to add a function that will copy a file being displayed
to another directory, whilct leaving the original behind? Can anyone suggest
a way that I might do this? It is important for my user that I display the
file. I use a 3rd party control for the TIFF and the MS DSOFramer control
for the rtf file. Thinking about this as I write, I think that I may be able
to do a 'save' on these 2 file types using the relevant controls. However
there are other files that I cannot do this with. Presumably I have to close
the files in my code, then copy, then open them again, or is ther an easier
way of doing this??

Many thanks

Paul Bromley
 
Stupid Me!!!

I was trying to copy to a Network drive that I only had read properties on.

Sorry for bothering you.

Paul Bromley
 
Oh, well just in case you need it, you could use:
1. FileSystemObject (COM) - known as Microsoft Scripting Runtime
2. The System.IO namespace in .NET

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Back
Top