Hello everyone,
Sorry in advance for my bad english I translated by Google.
I am looking to have the list of drive on linux and whether this is a key or not.
I am on windows but I can not find on Linux. I exported my research application tomtomax maxibox on Windows and Linux.
Thank you in advance to all
GallyHC
PS: For the admin, GallyHC account obviously wrong but I put my email.
Linux get drive liste...
Linux doesn't use "Drives" like Windows does.
Check your /mnt or /media folder for a INTERNAL folder. If it's there then your TomTom is plugged in and the INTERNAL directory IS the path to the TomTom "drive" itself.
On my PC it's /media/INTERNAL This directory only exists when my TomTom is plugged in. If I delete the /media/INTERNAL/art folder I actually delete the art folder in the TomTom. Hope this helps.
Check your /mnt or /media folder for a INTERNAL folder. If it's there then your TomTom is plugged in and the INTERNAL directory IS the path to the TomTom "drive" itself.
On my PC it's /media/INTERNAL This directory only exists when my TomTom is plugged in. If I delete the /media/INTERNAL/art folder I actually delete the art folder in the TomTom. Hope this helps.
- Fangbeast
- PureBasic Protozoa

- Posts: 4792
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Why not ls /mnt or ls /MEDIA and pipe the results to your purebasic program?gally wrote:Thank you, Media is the good directory then my question and how the list of media directory on linux.
thank you again
ls /mnt | myprogramname
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Thank you to everyone with the help, I found a solution I will give fair or event.
........ is a find file
For you is good or not?
just thank (vraiment un grand merci a tous)
GallyHC
Code: Select all
Procedure getTomtomDrive()
;
Define filename.s
Define filereps.s
If ExamineDirectory(0, "/media/", "*.*")
While NextDirectoryEntry(0)
filename = DirectoryEntryName(0)
If DirectoryEntryType(0) = #PB_DirectoryEntry_Directory
If FileSize("/media/"+filename+"/........") <> -1
filereps = "/media/"+filename+"/"
EndIf
EndIf
Wend
EndIf
MessageRequester("MAXI-BOX Pro", filereps, #PB_MessageRequester_Ok)
EndProcedurejust thank (vraiment un grand merci a tous)
GallyHC

