Jump to content

"Right Click ----> List Contents" tweak


Recommended Posts

Well in an existing installation this file just needs a Right Click => Install

From the Run box, all you need is

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 <drive>\<path>\<filename>.inf

For an unattended install, just use the same command as above in any of your bats, cmds, winnt.sif etc.

Additional Note

If you intend to use cmdlines.txt, just put the inf in $OEM$ with it and install using

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 .\<filename>.inf

If you intend to use cmdlines.txt, but want to put the inf within a folder as part of the $OEM$ structure install using

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 %SystemDrive%\<path>\<filename>.inf

Link to comment
Share on other sites


@ evilvoice

Just post away, we're all here to learn something, and since thread was started by totoymola, and was expanded upon, I think it shows a good logical progression.

If every thread was continued in this manner, under a nice search friendly title, this Forum would be more of a joy to use.

Following on from another thread.....I could have obsfucated it to protect my code, but I didn't.

Thanks for asking anyhow!

Link to comment
Share on other sites

Just Great :thumbup

TNX all DirList team

However,

1) just to confirm if it's working right.

By right-click on a folder, 
a) a DOS window (cmd.exe) is opened,
b) a DirList.txt file is saved in the concerned folder
c) the DirList.txt file is opened by Noepad

2) BTW, I do not like having dirlist.txt as folder/directory name. Is there an issue to get something like FolderName_List???

Regards

coucou

Link to comment
Share on other sites

I agree. Because we have a lot of different versions here, so this thing has evolved. But of course, the idea is still there. B)

If every thread was continued in this manner, under a nice search friendly title, this Forum would be more of a joy to use.

:D:thumbup

Link to comment
Share on other sites

Hi,

@Yzöwl and totoymola:

I do red all this thread and even tested the totoymola, Afterdawn and Yzöwl dirlist files.

I would say infact the totoymola dirlist write the file as FolderName_CONTENTS LIST.TXT in the Main Folder root which is very nice.

The AfterDawn dirlist need 2 files (.reg + .cmd) 2 much!

The Yzöwl dirlist.inf I prefer this one because it's the offer the UnInstal from Add /Remove Programs and easy UA install. However i wonder the mix of Yzöwl and totoymola. But, as my inf knowledge is limited, i do not dare to modify it.

Moreover, It is possible to get the file size close to each file???

Regards

coucou

Link to comment
Share on other sites

Hi Yzöwl,

I've the "DirList" option when I Right click on a folder BUT No file generated anywhere :( (Not in the Drive, main folder, folder, not in c: drive and not in %temp%).

All what I have is a DOS window (cmd.exe) opened and closed (No notepad...)

IHere my registry content

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\DirList]
@=""

[HKEY_CLASSES_ROOT\Folder\shell\DirList\command]
@=hex(2):25,00,43,00,4f,00,4d,00,53,00,50,00,45,00,43,00,25,00,20,00,2f,00,63,\
 00,20,00,64,00,69,00,72,00,20,00,22,00,25,00,31,00,22,00,20,00,2f,00,2d,00,\
 70,00,20,00,2f,00,62,00,20,00,2f,00,73,00,20,00,2f,00,61,00,3a,00,2d,00,64,\
 00,20,00,2f,00,6f,00,3a,00,6e,00,20,00,3e,00,20,00,22,00,25,00,31,00,22,00,\
 5f,00,4c,00,69,00,73,00,74,00,2e,00,74,00,78,00,74,00,20,00,26,00,26,00,20,\
 00,6d,00,6f,00,76,00,65,00,20,00,2f,00,79,00,20,00,25,00,31,00,5f,00,4c,00,\
 69,00,73,00,74,00,2e,00,74,00,78,00,74,00,20,00,22,00,25,00,31,00,22,00,20,\
 00,26,00,20,00,66,00,6f,00,72,00,20,00,2f,00,66,00,20,00,25,00,71,00,20,00,\
 69,00,6e,00,20,00,28,00,22,00,25,00,31,00,22,00,29,00,20,00,64,00,6f,00,20,\
 00,73,00,74,00,61,00,72,00,74,00,20,00,22,00,22,00,20,00,2f,00,77,00,20,00,\
 22,00,25,00,31,00,5c,00,25,00,7e,00,6e,00,71,00,5f,00,4c,00,69,00,73,00,74,\
 00,2e,00,74,00,78,00,74,00,22,00,00,00

which is

%COMSPEC% /c dir "%1" /-p /b /s /a:-d /o:n > "%1"_List.txt && move /y %1_List.txt "%1" & for /f %q in ("%1") do start "" /w "%1\%~nq_List.txt"

TNX for an help

coucou

Link to comment
Share on other sites

Apologies to all who got the last inf, there was an error, as noted by coucou post above, please uninstall it from add/remove programs, and redownload or edit it yourself.

the inf edit is this:

HKCR,Folder\shell.........<snip>.......... & for /f %%%q in (""%1"") do start """" /w ""%1\%%%~nq_List.txt"""

Just add the red bits!

You can of course just edit the file for next usage or redownload it, and for now make the change directly in the registry key

%COMSPEC% /c dir "%1" /-p /b /s /a:-d /o:n > "%1"_List.txt && move /y %1_List.txt "%1" & for /f %%q in ("%1") do start "" /w "%1\%%~nq_List.txt"

Once again, just add the red bits!

I have updated the previous attachment to suit...I told you I was guessing... :blushing:

Link to comment
Share on other sites

Hi Yzöwl

It' "half" working now.

By launching the dirlist on H:\1 Derniers Download\D-Link\ folder, i get the Syntax error message here enclosed.

In fact it generate a D-Link_List.txt file in the main folder H:\1 Derniers Download\ while it looking for H:\1 Derniers Download\D-Link\1_List.txt in the folder to be Dirlisted as thje error shown.

Hope i was clear

coucou

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...