The code below will list all files from the selected directory. How to make it list only files with one extension, like pdf?
[HKEY_CLASSES_ROOT\Directory\Shell\4_content-list-pdf\command]
@="cmd /c dir \"%1\" /b /o:gn | clip"
You can replace \"%1\"
with \"%1\\*.pdf\"
as follows:
[HKEY_CLASSES_ROOT\Directory\Shell\4_content-list-pdf\command]
@="cmd /c dir \"%1\\*.pdf\" /b /o:gn
Note:
A small number of commands follow slightly different rules,
FINDSTR
,REG
andRUNAS
all use\
as an escape character instead of^
Source syntax
\"%1\*.pdf\"
? or\"%1\\*.pdf\"
?