Trouble with File.Copy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmVycnkgSg==?=

    Trouble with File.Copy


    I am using File.Copy(sSrcF ile, sDestPath, true); to copy a file to a folder.
    This usually works, but somtimes I get this error "Access to 'my destination
    file path is denied."

    I realize that there must be some process connected to the file that causes
    this problem, however, I can always manually copy the file without a problem.

    Can someone tell me what I can do to force the file copy to occur?

    --
    Jerry J
  • Marc Gravell

    #2
    Re: Trouble with File.Copy

    Download "Process Explorer":
    Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more.


    Find-File Handle or Dll
    Put in part of your file name and hit search

    Marc


    Comment

    Working...