Read Directory List from a Network Drive

hennemarc

Member
Licensed User
Longtime User
Hello,

does anybody know how to read a content (directory list) of a network drive via B4A?

I would like to know the code to read out the drive

\\192.168.0.100\music

in my home network.
Actually that folder is not password protected, so no login is required. Is there also a way to login with a password and username to such folders?

The goal is to read out the ID3 Tags for all the files in that folder. How to read the ID3 Tag I know from a Tutorial.

Thanks for letting me know.


Regards,

hennemarc
 

Hubert Brandel

Active Member
Licensed User
Longtime User
Hi,

have you tried this
B4X:
ListFiles("//192.168.xxx.xxx/")

you wrote \\ip-Adress, but Linux Systems like Android use //ip-Adress/ ...
 
Last edited:
Upvote 0

hennemarc

Member
Licensed User
Longtime User
Hubert,

no that does not work. Any other idea?
I tried to do this with FTP.List(....) and this works, but only for folders without spaces inside the folder names.
Is there also a way to list files inside a folder which contains spaces?
 
Last edited:
Upvote 0

hennemarc

Member
Licensed User
Longtime User
Hi Erel,

on the network drive there is no FTP Server running. This network drive needs as login a user name and password. Is there a way to send this information so that I can login and real the directory list?

hennemarc
 
Upvote 0
Top