path to iPhone DCIM Directory

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
mol
Posts: 3727
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: path to iPhone DCIM Directory

Post by mol »

I think it's not good itead to transform folder names to capitals because Android is case-sensitive.
edk
Posts: 916
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: path to iPhone DCIM Directory

Post by edk »

AUGE_OHR wrote: Sat Apr 11, 2020 3:42 pm i have try to find a Way to identify "real Drive" from "This PC"
but again i got Problem to "translate" German Name like BILDER -> PICTURE

COPYHERE() only work for Device so i want to "hide real Drive" as they won´t work with COPYHERE() ... you need SHFile API
Maybe oItem:isFileSystem :idea:

Code: Select all

FUNCTION GetHandy()
Local aDev:={}, oDev, oItem, i
Local oShell := CreateObject( "shell.application" )
IF hb_isObject( oShell )
      oDev := oShell:NameSpace( CSIDL_DRIVES )                     // 0x0011 // My Computer
      IF hb_isObject ( oDev )
        	FOR i := 1 TO oDev:Items():Count
      			oItem := oDev:Items():Item( i - 1 )
      			IF !EMPTY( oItem ) .AND. !oItem:isFileSystem
      				AADD (aDev, oItem:Name)
      			ENDIF
      		NEXT
      ENDIF
ENDIF

IF EMPTY ( aDev )
	aDev := { "- No devices -" }
ENDIF
RETURN aDev

User avatar
AUGE_OHR
Posts: 2065
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: Sat Apr 11, 2020 3:58 pm I think it's not good itead to transform folder names to capitals because Android is case-sensitive.
try it without UPPER() ...
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2065
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,
edk wrote: Sat Apr 11, 2020 4:29 pm Maybe oItem:isFileSystem :idea:
YES :!:
thx
have fun
Jimmy
Post Reply