path to iPhone DCIM Directory

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: path to iPhone DCIM Directory

Post by danielmaximiliano »

Hi jimmy
How do you know the virtual names that Windows assigns to mobile devices?
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: path to iPhone DCIM Directory

Post by AUGE_OHR »

hi,

i have to say i´m not a Handy User.
it was as Present from my Son who send me Picture of his Baby.

i start on "My Computer" and "see" (in Explorer) that my iPhone are shown as "APPLE IPHONE"

Code: Select all

   oShell := CreateObject( "shell.application" )
   IF NIL <> oShell
      oFolder := oShell:NameSpace( CSIDL_DRIVES )     // 0x0011 // My Computer
      IF NIL <> oFolder
         oItems := oFolder:Items()
         iMax := oItems:Count

         FOR i := 1 TO iMax
            oItem := oItems:Item( i - 1 )
            IF !EMPTY( oItem )
               cName := UPPER( oItem:name )
               SayList( cName ) // add to Listbox

               IF cName = cPhone 

in a FOR / NEXT loop i step down until i found cPhone for next Action. (Internal Storage -> DCIM -> ... )

i made a Listbox of Device so i can change it when not found ... but i have no 2nd Handy to test it
also i`m not sure if DCIM can have "more Sub-Folder" ... i just have 103APPLE on my Handy

i got some Parts of Puzzle, as i have shown, but í´m not sure about hole App
i might be that my Code "just" work with my Handy.


attached lates Source Code. please test it with your Handy if it work.
IPHONE02.ZIP
(3.71 KiB) Downloaded 126 times
if it work with other than "APPLE IPHONE" please write a Message in "this" Thread, Thx
have fun
Jimmy
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

In my case your app does nothing.
It only fills log box with found disks and phone.
After that it hangs up
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: path to iPhone DCIM Directory

Post by AUGE_OHR »

mol wrote: Tue Mar 31, 2020 9:18 am It only fills log box with found disks and phone.
have you DblClick on "Phone" in Listbox and start again :idea:

is your "Phone" a iPhone :?:
does you "Phone" show a Drive Letter :?:
have fun
Jimmy
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

My phone is MI 9T PRO
Clicking on it in ListBox does nothing.
Phone doesn't show Drive letter
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: path to iPhone DCIM Directory

Post by AUGE_OHR »

hi,
mol wrote: Tue Mar 31, 2020 2:55 pm My phone is MI 9T PRO
Clicking on it in ListBox does nothing.
Phone doesn't show Drive letter
you say you "see" Phone in Explorer. can you go inside and what Name does it have :?:

in my App default i use "APPLE IPHONE". when "search Device" and not found look into Listbox
when DblClick on Item in Listbox it will transfer it into Textbox.
Default_IPhone.JPG
Default_IPhone.JPG (18.95 KiB) Viewed 1676 times
now press "search Device" again ... you will get same as Explorer show.

---

there are NO Drive Letter as they are "virtual Folder".
you can´t access those Folder with DIR or something else.

so "DragAccept()" function will not work with "virtual Folder"
like OLE-DragDrop you have to get "Stream" what i do with API COPYHERE() function.
have fun
Jimmy
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

You didn''t put your last version.
List of deviceses are placed in this control:

Code: Select all

      DEFINE EDITBOX Loglist
         ROW 20
         COL 10
         WIDTH 710
         HEIGHT 90
         VALUE ""
         FONTNAME "Arial"
         FONTSIZE 9
         TOOLTIP ""
         TABSTOP .T.
         VISIBLE .T.
         READONLY .F.
         HSCROLLBAR .T.
         VSCROLLBAR .T.
      END EDITBOX
It doesnt' have OnClick.
When I manually enter my phone name in TEXTBOX cDevice, nothing happens
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: path to iPhone DCIM Directory

Post by AUGE_OHR »

hi
mol wrote: Wed Apr 01, 2020 5:20 am You didn''t put your last version.
List of deviceses are placed in this control:
It doesnt' have OnClick.
uuuuuups ... that happens when under construction and change Concept
mol wrote:When I manually enter my phone name in TEXTBOX cDevice, nothing happens
hm ... does if work with Explorer to get into Folder "PHONE" and what is "in" that Folder :?:
have fun
Jimmy
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

I'm typing manually my phone name, then I click [Get Folder] button. I get GetFolder action (on the screenshot):
test1.jpg
test1.jpg (27.28 KiB) Viewed 1658 times
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: path to iPhone DCIM Directory

Post by AUGE_OHR »

hi,

what do you get when open "MI 9T PRO" ( upper() ) :?:
have fun
Jimmy
Post Reply