Is there any way to list the letters of the letters in obsolete?

On Windows, how can I open a processed buffer that displays all drive letters. When you execute C-x d, you should always specify a directory, but I want to start at the letter level on the disk instead of the root directory of a particular disk.

If the standard solution does not exist, do you have one (extension for dired?)? or links to articles on this subject?

+3
source share
2 answers

In standard mode, you can only browse directories, and since no directory exists that contains your drive letters, you cannot browse their list.

emacs- lisp dired.

AFAIK , wmic , .

wmic:

wmic logicaldisk get caption,drivetype,providername,volumename

emacs- lisp .

(let (sh-output volumes)
  (setq sh-output (shell-command-to-string "wmic LogicalDisk get Caption,DriveType,ProviderName,VolumeName"))
)

(DriveType: 3 = HDD, 4 = Network Mapping, 5 = Optical.)

, Windows, RET, .

, ...

(let (sh-output volumes)
  (setq sh-output (shell-command-to-string "wmic LogicalDisk get Caption"))
)

.

+2

Dired + , .

diredp-w32-drives / Windows. RET mouse-2, Dired . diredp-w32-local-drives, .

^ Dired (, C:\), / .

+1

Source: https://habr.com/ru/post/1763477/


All Articles