|
|
|
re: 'Print Out a Directory Listing' in Win2000
Tuesday, October 28, 2003 at 7:56 am Windows 2000 Annoyances Discussion Forum
Posted by Erik Berg
(1 messages posted)
I'm unclear on how to do this; by "two-line Print.bat file" do you mean the four-line
listing at the bottom of the post? And shouldn't the value for the key then be PRINT.BAT
instead of PRINTDIR.BAT in the Registry key? How is the command then invoked? Right-clicking
while in the directory you want to print? Or from Windows Explorer? Sorry, but
I'm a registry newbie...Thanks.
On Saturday, March 29, 2003 at 5:19 pm, NFX wrote:
>Setting PrintDir option in Context menu (Win2000):
> * Save the two-line Print.bat file into your c:\winnt\ folder (win2k).
> * Next, run the Registry Editor (REGEDIT.EXE).
> * Open My Computer\ HKEY_CLASSES_ROOT\ Directory\ shell.
> * Select New from the Edit menu, and then select Key.
> * Type Print for the name of this new key, and press Enter.
> * Highlight the new Print key, select New from the Edit menu, and then select
>Key again.
> * Type command for the name of this new key, and press Enter.
> * Double-click on the (default) value in the right pane, and type
>c:\winnt\PRINTDIR.BAT "%1" (NOTE THE QUOTES!) (assuming that c:\winnt\ is your
Windows2000
>folder).
>
>
>
>Print.bat, save this file in c:\winnt\:
>
>@echo off
>dir %1 /o:ge /x>"%temp%\Listing"
>start /w notepad "%temp%\Listing"
>del "%temp%\Listing" exit
>
>Nederfox.
|
All messages in this thread [show all]
 |  | re: 'Print Out a Directory Listing' in Win2000 (Erik Berg: Tue, Oct 28, 2003, 7:56 am) |
| |
| |
Return to the Windows 2000 Discussion Forum
|
|
|
|