Print directory lists xp

Guys, I found this bit of stuff on the net and installed it. It works well but sorts the list into a strange mix of alpha/numerics. Is there a way to make the utility print the list exactly as the file list?

TIA—

To add the print directory feature to Windows Explorer, follow these steps:

a) Open Notepad and then copy and paste the following text into Notepad:

@echo off

dir %1 /-p /o:gn > “%temp%Listing”

start /w notepad /p “%temp%Listing”

del “%temp%Listing”

exit




b) Save the file as Prin.bat in the Windows directory, and then close Notepad.

c) Start Windows Explorer, click Tools, and then click Folder Options.

d) Click the File Types tab, and then click File Folder. d1)Click Advanced (this step added by Gizmo)

e) Click Edit, and then click New.

f) In the Action box, type Print Directory Listing.

g) In Application used to perform action, click Prin.bat, and then click OK.

h) Click OK, click Apply, and then click OK.

Now Open
Windows Explorer, right-click the folder that you would like to print a
directory listing of, and then click Print Directory Listing.

That’s it. The print directory feature has been permanently added to your copy of Windows

Can you modify “prin.bat” as follows:

@echo off

dir %1 /-p /o:gn > “%temp%Listing”

start /w notepad "%temp%Listing"
exit

This should start a copy of notepad containing the directory
listing when you right click and select the “Print Directory Listing” menu item. Can you post a sample of the listing in notepad here and
explain why it doesn’t look right?

Just re-read your post. If it is just the sort order that is wrong then modify “prin.bat” as follows to sort by name only (it is currently listing directories first and then sorting by name):

dir %1 /-p /o:n > “%temp%Listing”

If you want to sort by date, use:

dir %1 /-p /o:d > “%temp%Listing”

To sort in reverse order, insert a “-” after the “/o:” option:

dir %1 /-p /o:-d > “%temp%Listing”

This is what the file lists look like

The explorer list[clipped to the start of list]

The list from the notepad [again clipped to show the start]

The sb.htm goes from 116-841 on the explorer list

The sb.htm goes from 116-433 on the notepad list

Got me well and truly puzzled—

The screen capture would suggest that Explorer is sorting by Name, ascending (the “up” arrow next to the Name column heading indicates this) however the list of file names is not properly sorted as I would expect.

Press “F5” in Explorer or click on the “Name” column heading and then click on “Name” again to force a refresh. Does this change the order in which the files are displayed in Explorer?

If you add files (by drag and drop) to an existing folder in Explorer, more often than not the new files do not appear in their proper sorted position in the folder view until you do a refresh.

Wouldn’t a PrtScn of the active directory window be easier?

Possibly, unless you have hundreds of files that require the Explorer window to be scrolled (as is probably the case here).

What seems to happen is this

The file sorts it’s self into numerically ascending order, so for example serial numbers so that 3000 is followed by 301. Anyway thanks for the help guys, I think I have a solution, a bit of software called DDfile catcher, it’s still in the early stages but it allows you to copy files from explorer and drag them into a window within the programme, you can then export to  a file, Excel word etc. I’m still playing with it, we’ll see how it goes—

Yes niggle that is the case here—