Recent

Author Topic: ShellTreeView to list additional drives on hard disk or network  (Read 1076 times)

marsheng

  • Jr. Member
  • **
  • Posts: 53
My requirement is to load a text type file and dump to the RS232 port.

The file could be from a local drive on the same machine (windows partition) or from a network drive.

When running SheelTreeView, it only shows the Linux installation.

If I use thunar, all the devices are listed and I can access them so they appear to be accessible.

How do I get them into ShellTreeView? 

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: ShellTreeView to list additional drives on hard disk or network
« Reply #1 on: March 27, 2022, 12:03:17 pm »
Are these drives mounted correctly? I only have Linux on a virtual machine on a Windows host, but when everything is set up properly I can see the common folder from the linux VM, also from TShellTreeView.

marsheng

  • Jr. Member
  • **
  • Posts: 53
Re: ShellTreeView to list additional drives on hard disk or network
« Reply #2 on: March 29, 2022, 03:31:20 pm »
Is there a directory some where in the Linux file system that points to the mounted drive? Bit like windows mapping ?

As a side line, is there a way to sort ShellTreeView alphabetically ?

dsiders

  • Hero Member
  • *****
  • Posts: 1080
Re: ShellTreeView to list additional drives on hard disk or network
« Reply #3 on: March 29, 2022, 05:33:57 pm »
Is there a directory some where in the Linux file system that points to the mounted drive? Bit like windows mapping ?

As a side line, is there a way to sort ShellTreeView alphabetically ?

Probably /etc/mtab for mounted file systems. You'll get a better answer for this from Google...

As a side line, is there a way to sort ShellTreeView alphabetically?

Use TShellTreeView.FileSortType.

https://dsiders.gitlab.io/lazdocsnext/lcl/shellctrls/tcustomshelltreeview.filesorttype.html
https://dsiders.gitlab.io/lazdocsnext/lcl/shellctrls/tfilesorttype.html

Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

petevick

  • Sr. Member
  • ****
  • Posts: 347
Re: ShellTreeView to list additional drives on hard disk or network
« Reply #4 on: April 07, 2022, 05:33:09 pm »
As a side line, is there a way to sort ShellTreeView alphabetically ?
Yes, set the property FileSortType to fstAlphabet

To list all mounted drives set the Root property to /mnt
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Windows 10, Lazarus 3.2, FPC 3.2.2

 

TinyPortal © 2005-2018