Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a file to mobile phone

Status
Not open for further replies.

eugbug

Programmer
May 27, 2009
1
IE
I want to copy a file, say x.txt to my mobile phone.
How do I specify the destination path in the copyfile method?
The destination folder is Computer\EUGE'S PHONE\c:\gallery\graphics


The code should go something like this, but the destination folder I have specified doesn't work

Dim fso,wshShell,strDesktop
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set fso = CreateObject("Scripting.FileSystemObject")

fso.copyfile strdesktop & "\" & "x.txt", "Computer\EUGE'S PHONE\c:\gallery\graphics
 
Try enumerating the drives to see what you get. From there you shoudl be able to build a path.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top