Copying files to mobile phone

Status
Not open for further replies.

eugbug

Distinguished
May 28, 2009
9
0
18,510
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"
 

Zenthar

Distinguished
Dec 31, 2007
250
0
18,960
First, do you know if your phone even has a C:\ drive? If the phone uses any kind of Linux OS (or Mac OS I think) the base path is simply "/".

That said, when you connect the phone to your PC, does it show as a removable device? If not, you might have to use some manufacturer-specific API if even available.
 

eugbug

Distinguished
May 28, 2009
9
0
18,510
The phone is a Nokia 6300.
I thing it just supports Java (no Symbian OS).

See image from windows explorer of folder tree

http://eugbug.freewebspace.com/
 

Zenthar

Distinguished
Dec 31, 2007
250
0
18,960
Did you have to install anything for your phone to work in Explorer?

If you right-click on any file on your phone and check the Properties, what is the path like beside "Location"?

Can you access this path using the command prompt (DOS)?
 

eugbug

Distinguished
May 28, 2009
9
0
18,510
I installed the latest version of Nokia PC Suite.
See this link for properties window:

http://eugbug.freewebspace.com

(Can I add an image to a reply on this forum without putting it on a webpage?)

The phone is listed under Computer in Windows Explorer as Euge's Phone but with no drive letter allocation so I can't change to the drive in DOS
 

Zenthar

Distinguished
Dec 31, 2007
250
0
18,960
My guess is that PC Suite installs some kind of special extension to Explorer so you can see your phone, but there might be no equivalent for the bare shell.

Unfortunately I don't know enough about VBScript or the internal working of Explorer to give any further advice :(. I though maybe symbolic link (Vista) or junctions (W2K and up) might be used, but they all require a path as input and "Computer" is probably some special object you cannot browse as a normal browser.

Sorry
 
Status
Not open for further replies.