Copying files to mobile phone

eugbug

Distinguished
May 28, 2009
5
0
18,510
0
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
9
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
5
0
18,510
0
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
9
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
5
0
18,510
0
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
9
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
 
Thread starter Similar threads Forum Replies Date
P Apps General Discussion 4
D Apps General Discussion 1
Z Apps General Discussion 1
E Apps General Discussion 1
M Apps General Discussion 3
W Apps General Discussion 2
S Apps General Discussion 2
T Apps General Discussion 6
D Apps General Discussion 1
N Apps General Discussion 3
A Apps General Discussion 1
viveknayyar007 Apps General Discussion 0
H Apps General Discussion 1
S Apps General Discussion 2
A Apps General Discussion 1
C Apps General Discussion 2
P Apps General Discussion 2
K Apps General Discussion 3
k3y3n1n Apps General Discussion 2
L Apps General Discussion 9

ASK THE COMMUNITY

TRENDING THREADS