Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Copy Files to GMail Drive

Reply
 
Old 03-30-2009   #1 (permalink)
Hamid


 
 

Copy Files to GMail Drive

Is there any way we can use the powershell to copy files to "Gmail
Drive" (http://en.wikipedia.org/wiki/Gmail_Drive).

Basically the Gmail Drive create a special folder under My computer
which you can access through windows explorer but it is not accessible
from command prompt or WSH.


My System SpecsSystem Spec
Old 03-30-2009   #2 (permalink)
Josh Einstein


 
 

Re: Copy Files to GMail Drive

I did a lot of digging around the IDropTarget interface and "verbs" when I
was trying to figure out how to invoke the Send To -> Mail Recipient shell
extension. It really opened my eyes to how a lot of the things in the shell
work. If you can drag files into the GMail drive and if you can get to the
shell namespace you should be able to automate it by simulating file drops.
But I won't kid you, it's not trivial. You should start by digging around on
MSDN for the Shell.Application object. That would probably be your entry
point.

Josh

"Hamid" <hamid.qureshi@xxxxxx> wrote in message
news:7225507c-adb2-45a8-aa09-586a2529d9ff@xxxxxx
Quote:

> Is there any way we can use the powershell to copy files to "Gmail
> Drive" (http://en.wikipedia.org/wiki/Gmail_Drive).
>
> Basically the Gmail Drive create a special folder under My computer
> which you can access through windows explorer but it is not accessible
> from command prompt or WSH.
>
My System SpecsSystem Spec
Old 03-30-2009   #3 (permalink)
Alex K. Angelopoulos


 
 

Re: Copy Files to GMail Drive

The help file for Gmail Drive actually shows a demo WSH script using the
technique Josh was suggesting would work. I'm not that familiar with the
tool, but using the script as an example, I worked out how to correctly
start up and spawn the log on dialog.

$sa = New-Object -ComObject Shell.Application
$Gmail = $sa.NameSpace(0x11).Items() | ?{$_.Name -eq "Gmail Drive"}
$Gmail.Verbs() | ?{$_.Name -eq "Login As..."} | %{$_.DoIt()}

At that point, $Gmail should be a COM object equivalent to the myGmail
variable in the help file script, with CopyHere() functionality, etc.

"Hamid" <hamid.qureshi@xxxxxx> wrote in message
news:7225507c-adb2-45a8-aa09-586a2529d9ff@xxxxxx
Quote:

> Is there any way we can use the powershell to copy files to "Gmail
> Drive" (http://en.wikipedia.org/wiki/Gmail_Drive).
>
> Basically the Gmail Drive create a special folder under My computer
> which you can access through windows explorer but it is not accessible
> from command prompt or WSH.
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Certain files refuse to copy from C drive to USB drive Vista hardware & devices
Search c drive and copy files of a certain extension VB Script
Ultimate: it takes forever to copy files to another drive.. Vista General
Vista drive has problem, want to copy files to new drive, HOW?? Vista security
Vista extremely slow to copy files to network drive Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46