IPB

Welcome Guest ( Log In | Register )

[ Outline ] · Standard · Linear+

> Windows Dir/File list printing

phish
post Aug 17 2004, 02:29 AM
Post #1


nFm [ not leaving ]
**

Group: Full Member
Posts: 44
Joined: 24-March 04
Member No.: 67



I want to print directory list and file list under Windows XP.
I found a simple tip with printdir.bat,
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

This batch file sends the list to printer.
How can I modify to view the list with notepad?
After viewing with notepad, I may print from notepad menu.

Or any good simple utility you want to recommend?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topicStart Poll
Replies
Boss429
post Aug 17 2004, 05:12 AM
Post #2


Buckled Up
*****

Group: Private Member
Posts: 623
Joined: 18-March 04
From: Canada
Member No.: 18



check the switches with the notepad.. might be /o for open.

then you can choose to print in the notepad.

/p tells the file to print.

to view the switches for notepad.. you can seartch on line or

run with the commands notepad.exe /? or /help at a command prompt (ie MS-DOS prompt or equivalent)


--------------------
"Scenes change before my eyes
Doesn't matter what I try
Close my eyes they disappear
Open wide, and they reappear"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicTopic OptionsStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
 

Lo-Fi Version Time is now: 2nd July 2025 - 11:52 AM