AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Copy files to mobile device

Ein Thema von WojTec · begonnen am 29. Dez 2018 · letzter Beitrag vom 20. Feb 2019
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Copy files to mobile device

  Alt 29. Dez 2018, 16:47
I need to copy files on Windows to disk without letter on mobile device (internal storage and SD card). Normally I'm using SHFileOperation, but it it want to to know target path. How to copy to such devices?
  Mit Zitat antworten Zitat
Benutzerbild von Assarbad
Assarbad

Registriert seit: 8. Okt 2010
Ort: Frankfurt am Main
1.234 Beiträge
 
#2

AW: Copy files to mobile device

  Alt 20. Feb 2019, 10:06
Well, it's kinda difficult to give a general answer. Besides, your question lacks detail.

Despite being only visible in the shell name space, your device (camera or mobile phone) will typically have its own display name. So in theory you should be able to abuse MSDN-Library durchsuchenSHGetDesktopFolder in order to get an instance of MSDN-Library durchsuchenIShellFolder and calling its EnumObjects method to retrieve a MSDN-Library durchsuchenIEnumIDList instance. Using that you should be able to forge a PIDL that corresponds to the shell namespace object representing your device and use that in MSDN-Library durchsuchenSHFileOperation or the newer MSDN-Library durchsuchenIFileOperation.

Do you have a minimum compatibility requirement? If XP and newer is okay, then you may want to look at MSDN-Library durchsuchenWPD Application Programming Interface, which may or may not be easier to wield in your scenario.
Oliver
"... aber vertrauen Sie uns, die Physik stimmt." (Prof. Harald Lesch)
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:47 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz