path to iPhone DCIM Directory

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 2060
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,

those virtual Folder are like ZIP Folder. you need to un-zip to compare what is "inside".
also, when using DragAcceptFiles() ( WS_EX_ACCEPTFILES ) , you are not able to DragDrop them from Explorer "Virtual Folder" into your HMG App.

---

i´m not sure why i get Size 0 and funny Date as Result. have to make more test.
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: path to iPhone DCIM Directory

Post by andyglezl »

p.s. i just saw you have DCIM -> 2 x Sub-Folder ... "last" Code will only work with 1st Folder ...
ok have to made some Video to simulate it ... are there "more" Folder :?:
Así es como viene de fábrica, tal vez haya opción para poder crear nuevas carpetas. (pienso yo)
*-------------------------------------------------------------------------------------------------------------------------
This is how it comes from the factory, maybe there is an option to create new folders. (I think)
Andrés González López
Desde Guadalajara, Jalisco. México.
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: path to iPhone DCIM Directory

Post by edk »

mol wrote: Thu Apr 02, 2020 2:25 pm I'm building solution with tree and recursion. I have a problem with mark items in the tree.
Some idea (selected nodes/items (by DBLCLICK) are stored in aSelected variable) :idea:
Tree_99.7z
(3.05 KiB) Downloaded 122 times
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: path to iPhone DCIM Directory

Post by danielmaximiliano »

AUGE_OHR wrote: Thu Apr 02, 2020 3:58 pm hi,

those virtual Folder are like ZIP Folder. you need to un-zip to compare what is "inside".
also, when using DragAcceptFiles() ( WS_EX_ACCEPTFILES ) , you are not able to DragDrop them from Explorer "Virtual Folder" into your HMG App.

---

i´m not sure why i get Size 0 and funny Date as Result. have to make more test.
One possibility is to create a database like Thumbs.db where the contents of the virtual folder of the mobile device are.
This will be created in the destination folder, many applications like EveryThing, the famous search engine saves all the scanned files in the units that are connected to the PC, in this way it is efficient to search for a file in it.
selecting a checkbox it creates a new list of files that have not been copied to the new drive
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

I want to share my working sample based on Jimmy work and Claudio Soto tree sample.
It copies files from phone, but doesn't copy from network drives which are present in My Computer folder.
In CopyFiles function I left comment how to copy from local or network drives.
It should be the way to recognize if source is phone or local or network drive...
Attachments
CopyFromPhone.zip
(5.86 KiB) Downloaded 130 times
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: path to iPhone DCIM Directory

Post by danielmaximiliano »

mol wrote: Fri Apr 03, 2020 11:21 am It should be the way to recognize if source is phone or local or network drive...
Search Google


https://devblogs.microsoft.com/scriptin ... owershell/

https://docs.microsoft.com/en-us/window ... dfrom=MSDN
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: path to iPhone DCIM Directory

Post by danielmaximiliano »

mol wrote: Fri Apr 03, 2020 11:21 am I want to share my working sample based on Jimmy work and Claudio Soto tree sample.
Hi Marek:
I am testing your development and I found a Tole error that I attached in the image, the second is that by default the checkbox (Recursive Sub-folder) would not have to be checked since it will search for all the content of the cell phone,
deactivating the option hidden files my cell phone 10 minutes ago that is looking for the 20 main folders that the cell phone has
2020-04-03 09_34_58-Window.png
2020-04-03 09_34_58-Window.png (10.38 KiB) Viewed 1701 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: path to iPhone DCIM Directory

Post by danielmaximiliano »

AUGE_OHR wrote: Tue Mar 31, 2020 5:30 am 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"
Hi Jimmy : I compile the application, it recognizes my MotoG8plus, but when I do it again nothing happens, but if I click on motoG8plus and I click on "Searcho for device again, the error occurs
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
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 marek,

thx for your Sample, i will study it.

i try Sample but got no result in last Step ... nothing arrive :(
i just have a quick look into Source and might have found a Problem

Code: Select all

FUNCTION GetDeviceList()
   oShell := CreateObject( "shell.application" )
function CopyFiles
   oShell := CreateObject( "Shell.Application" )
you have 2 x Instance of oShell so i´m not sure it Object from 1 Instance will work in 2nd Instance :idea:

---

Question : can i hole Object in Array ... and how to "Destroy" it under HMG :?:

---

about Network : you can reach it with Drive-Letter or UNC-Path while they have "real" Folder.
i´m not sure but IMHO "Shell.Application" is for Local Access

when "Stream" with CopyHere() over Network it is like "ZIP" and much slower than copy with SHfile Function like Explorer.
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
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 »

danielmaximiliano wrote: Fri Apr 03, 2020 1:56 pm I compile the application, it recognizes my MotoG8plus, but when I do it again nothing happens, but if I click on motoG8plus and I click on "Searcho for device again, the error occurs
not sure if your MotoG8plus use "virtual" Folder.
my OLD Motorola "Razr" (not new "Razr" ... 1500 $ :shock: ) does show a Drive-Letter.

---

open Explorer "this PC". on left site you will find your Handy.
try to open it and look what is inside.
if it is a Folder remember that Name and change "into" Folder.
this can happen recursive until you see some Image file or else (Musik ?)

the code need the Object which Name you have remember to "stream" files from virtual Folder to your Destination.

---

i have start this Thread to get Image from my iPhone.
now we know that also other Smartphone can use this Way :D

when you can see a DCIM Folder than you have good chance to get Code working.
Marek have "visualize" it using a TREE, GREAT :!:

i have to study his Code to learn how TREE Work under HMG as i have Problem with ACTION "on Node" ...
have fun
Jimmy
Post Reply