Ich schreibe in Deutsch und hoffe das ist ok. Mein Englisch ist nicht das Beste.
Ich verwende Version 1.11.1.748.
1.) Wie ermittle ich die Attribute einer ausgewählten Datei oder Verzeichnis?
2.) Wie ermittle ich den absoluten Pfad zum Papierkorb?
Tschüss Frank
[hr]
Translation for visitors not speaking German:
I'm using version 1.11.1.748.
1.) How do I retrieve the attributes of a selected file or folder?
2.) How do I retrieve the absolute path to the recycle bin?
Bye Frank
Fragen zur Version 1.11.1
Re: Fragen zur Version 1.11.1
Das geht mit ExplorerTreeView nicht direkt. Dieser Code liefert den absoluten Pfad des gewählten Items:thesmilyface wrote:1.) Wie ermittle ich die Attribute einer ausgewählten Datei oder Verzeichnis?
Code: Select all
Dim path As String
path = ExTvw1.ItemHandleToFSPath(ExTvw1.SelectedItem)
Auch das geht nicht direkt. ItemHandleToFSPath() könnte auch hier weiterhelfen, ansonsten die API-Funktionen SHGetFolderLocation() (mit CSIDL_BITBUCKET) und SHGetPathFromIDList().thesmilyface wrote:2.) Wie ermittle ich den absoluten Pfad zum Papierkorb?
Allerdings gibt es eigentlich nicht DEN absoluten Pfad zum Papierkorb. Vielmehr hat jedes Laufwerk seinen eigenen Papierkorb und der Papierkorb auf dem Desktop ist ein virtueller Ordner, der als gemeinsames Interface dient.
[hr]
Translation for visitors not speaking German:
This can't be done with ExplorerTreeView directly. This code retrieves the absolute path of the selected item:thesmilyface wrote:1.) How do I retrieve the attributes of a selected file or folder?
Code: Select all
Dim path As String
path = ExTvw1.ItemHandleToFSPath(ExTvw1.SelectedItem)
This can't be done directly either. ItemHandleToFSPath() may help here again, otherwise the API functions SHGetFolderLocation() (with CSIDL_BITBUCKET) and SHGetPathFromIDList().thesmilyface wrote:2.) How do I retrieve the absolute path to the recycle bin?
But actually there isn't THE absolute path to the recycle bin. In fact each drive has its own recycle bin and the recycler on the Desktop is a virtual folder, that serves as a common interface.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!