Page 2 of 6

Re: path to iPhone DCIM Directory

Posted: Mon Mar 30, 2020 5:47 pm
by danielmaximiliano
Hi jimmy
How do you know the virtual names that Windows assigns to mobile devices?

Re: path to iPhone DCIM Directory

Posted: Tue Mar 31, 2020 5:30 am
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 136 times
if it work with other than "APPLE IPHONE" please write a Message in "this" Thread, Thx

Re: path to iPhone DCIM Directory

Posted: Tue Mar 31, 2020 9:18 am
by mol
In my case your app does nothing.
It only fills log box with found disks and phone.
After that it hangs up

Re: path to iPhone DCIM Directory

Posted: Tue Mar 31, 2020 10:28 am
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 :?:

Re: path to iPhone DCIM Directory

Posted: Tue Mar 31, 2020 2:55 pm
by mol
My phone is MI 9T PRO
Clicking on it in ListBox does nothing.
Phone doesn't show Drive letter

Re: path to iPhone DCIM Directory

Posted: Wed Apr 01, 2020 2:21 am
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 1885 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.

Re: path to iPhone DCIM Directory

Posted: Wed Apr 01, 2020 5:20 am
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

Re: path to iPhone DCIM Directory

Posted: Wed Apr 01, 2020 7:35 am
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 :?:

Re: path to iPhone DCIM Directory

Posted: Wed Apr 01, 2020 7:55 am
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 1867 times

Re: path to iPhone DCIM Directory

Posted: Wed Apr 01, 2020 9:16 am
by AUGE_OHR
hi,

what do you get when open "MI 9T PRO" ( upper() ) :?: