Article View: borland.public.cppbuilder.internet.web
Article #1192Re: My Network Places
From: Remy Lebeau (TeamB)
Date: Mon, 25 Jul 2005 20:31
Date: Mon, 25 Jul 2005 20:31
26 lines
2234 bytes
2234 bytes
"Blake Young" <blakeyoung@mail.utexas.edu> wrote in message
news:42e540e6$1@newsgroups.borland.com...
> How can I move files (programmatically) to one of the various
> folders in My Network Places?
The folders you are referring to are virtual, they do not exist on the file
system, and thus you cannot copy files to them directly via the normal file
operation functions. Virtual folders can only be accessed via the
IShellFolder interface, and the only way they can accept incoming data is
via the IDataObject interface. As for the actual moving of files, about the
only thing I can think of, without using Drag&Drop visually, is to create an
IDataObject that contains the filenames, then "copy" the IDataObject onto
the clipboard via OleSetClipboard(), and then let the virtual folder "paste"
the IDataObject as it sees fit. This assumes that the virtual folder even
knows how to work with the clipboard to begin with, though.
Have a look at the following article for more information:
Transferring Shell Objects with Drag-and-Drop and the Clipboard
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/transferring/transfer.asp
Gambit
Technical Details
Message-ID:
<42e54cc1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsstand.newsread.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42e540e6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,1c34a33aa7f8db52 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <42e540e6$1@newsgroups.borland.com> Subject: Re: My Network Places Date: Mon, 25 Jul 2005 13:31:22 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42e54cc1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122323649 68.69.17.41 (25 Jul 2005 13:34:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsstand.newsread.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail