Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd say that explorer does the copying to the destination files itself, so there's no way to directly write the destination files. This makes sense, because the names of the source files can only come from the application that copied the data to the clipboard, which need not be explorer. OTOH the names of the destination files may actually differ, because files of the same name could already exist in the destination folder, and only explorer can create the modified names for the destination files (like by prepending "Copy of " or by appending " (2)" to the base file name).</p> <p>You will need to provide the clipboard format for the Windows Explorer so that it can paste the files. The <a href="http://msdn.microsoft.com/en-us/library/ms649013(VS.85).aspx#_win32_Standard_Clipboard_Formats" rel="nofollow noreferrer">documentation of standard clipboard formats</a> suggests that <em>CF&#95;HDROP</em> is the right one. With this clipboard format you would provide a list of source file names, but the files do need to exist of course, so you <em>will</em> need to save them to disc.</p> <p>You could try to make the process as light-weight as possible, though. Usually when a user copies data to the clipboard it is put there immediately, whether or not it will be used for a paste operation. For your application that would mean that you would need to create the files and put the list of file names into the clipboard, every time. However, Windows does support a mode called <a href="http://msdn.microsoft.com/en-us/library/ms649014(VS.85).aspx#_win32_Delayed_Rendering" rel="nofollow noreferrer">Delayed Rendering</a>, which is used exactly for such cases. Basically you put only an empty stub of the data onto the clipboard, and only when another application tries to access the data it will be requested from your app. So you could implement this in a way that only when the user tries to paste the files into explorer you would save them to disc and return the list of file names.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload