Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Using Google Earth from Shell

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2007, 07:37 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Question Using Google Earth from Shell

Hi everyone:

I'm trying to launch a .KML file using the Shell with this code:

Shell ("googleearth.exe","myfile.kml")

Google Earth launches, but I got the message:

"Unable to open Earth file\myfile.kml for read"

But if I open a cmd session, and type:
googleearth.exe myfile.kml

everything works fine. So, the kml file is Ok, and the way of launching it from the Desktop shell is also Ok. What am I doing wrong?

Any Idea of how can I do this?


By the way, I've seen Google Earth has a COM API Library. (http://bbs.keyhole.com/ubb/showflat..../page/0#613507)

Is it possible to use it in our dear basic4ppc?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 08-22-2007, 08:47 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Does your file name include any spaces?
Have you tried to use the full path in the Shell method?
Reply With Quote
  #3 (permalink)  
Old 08-23-2007, 10:38 AM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Unhappy Solved.

Hi Erel,

Yes, It was my fault...I wasn't using the quotes in the file path. It works fine just adding it. I mean:

Shell ("googleearth.exe",chr(34)& "myfile.kml"& chr(34))



Thanks for your time. (and software!)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Maps trckashyap Questions (Windows Mobile) 0 10-31-2008 06:34 AM
如何寫出像 Google Talk (即時通) 的程式 ? jack528 Chinese Forum 0 08-25-2008 04:48 PM
using shell() Put Claude Questions (Windows Mobile) 2 12-26-2007 08:41 AM
Shell Wizarda2z Questions (Windows Mobile) 3 08-05-2007 07:56 AM
Google Earth KML Generator alfcen Share Your Creations 0 04-30-2007 10:10 AM


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0