Sign in with
Sign up | Sign in
Your question

Copying files to mobile phone

Last response: in Applications
Share
May 28, 2009 2:11:41 PM

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"
a b L Programming
May 29, 2009 1:20:55 PM

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.
May 29, 2009 2:34:43 PM

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/
Related resources
a b L Programming
June 3, 2009 4:34:39 PM

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)?
June 4, 2009 8:32:11 PM

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
a b L Programming
June 4, 2009 11:02:16 PM

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
June 5, 2009 9:20:41 AM

Ok, Thanks anyway for replying :) 
!