PDA

View Full Version : printing the directory


Laguilar
December 6th 03, 10:06 PM
Hi all, I read on the knowledge base article 321379 "HOW TO: Add a "Print
Directory" Feature for Folder in Windows XP"

The instructions work fine, but, when it runs it closes the file, I like to
have the file open to modify or format it in a certain way.
Below are the instructions. I would prefer to either open it in Excel or
Word.

Thanks

Luis
Create the Printdir.bat File
To create the Printdir.bat file:
1.. Click Start, click Run, type notepad, and then click OK.
2.. 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

3.. On the File menu, click Exit, and then click Yes to save the changes.
4.. In the Save As dialog box, type %windir%\Printdir.bat, and then click
Save.

David Candy
December 6th 03, 10:08 PM
Delete the last line if you don't want the file deleted when excel =
closes.

--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Laguilar" > wrote in message =
...
> Hi all, I read on the knowledge base article 321379 "HOW TO: Add a =
"Print
> Directory" Feature for Folder in Windows XP"
>=20
> The instructions work fine, but, when it runs it closes the file, I =
like to
> have the file open to modify or format it in a certain way.
> Below are the instructions. I would prefer to either open it in Excel =
or
> Word.
>=20
> Thanks
>=20
> Luis
> Create the Printdir.bat File
> To create the Printdir.bat file:
> 1.. Click Start, click Run, type notepad, and then click OK.
> 2.. 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
>=20
> 3.. On the File menu, click Exit, and then click Yes to save the =
changes.
> 4.. In the Save As dialog box, type %windir%\Printdir.bat, and then =
click
> Save.
>=20
>=20

David Candy
December 6th 03, 10:08 PM
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w excel "%temp%\Listing"
del "%temp%\Listing" exit


--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Laguilar" > wrote in message =
...
> Hi all, I read on the knowledge base article 321379 "HOW TO: Add a =
"Print
> Directory" Feature for Folder in Windows XP"
>=20
> The instructions work fine, but, when it runs it closes the file, I =
like to
> have the file open to modify or format it in a certain way.
> Below are the instructions. I would prefer to either open it in Excel =
or
> Word.
>=20
> Thanks
>=20
> Luis
> Create the Printdir.bat File
> To create the Printdir.bat file:
> 1.. Click Start, click Run, type notepad, and then click OK.
> 2.. 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
>=20
> 3.. On the File menu, click Exit, and then click Yes to save the =
changes.
> 4.. In the Save As dialog box, type %windir%\Printdir.bat, and then =
click
> Save.
>=20
>=20

Laguilar
December 6th 03, 10:20 PM
Thanks for the 411. It worked
"Laguilar" > wrote in message
...
> Hi all, I read on the knowledge base article 321379 "HOW TO: Add a "Print
> Directory" Feature for Folder in Windows XP"
>
> The instructions work fine, but, when it runs it closes the file, I like
to
> have the file open to modify or format it in a certain way.
> Below are the instructions. I would prefer to either open it in Excel or
> Word.
>
> Thanks
>
> Luis
> Create the Printdir.bat File
> To create the Printdir.bat file:
> 1.. Click Start, click Run, type notepad, and then click OK.
> 2.. 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
>
> 3.. On the File menu, click Exit, and then click Yes to save the
changes.
> 4.. In the Save As dialog box, type %windir%\Printdir.bat, and then
click
> Save.
>
>

Laguilar
December 6th 03, 10:20 PM
Thanks it worked...
"David Candy" > wrote in message
...
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w excel "%temp%\Listing"
del "%temp%\Listing" exit


--
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Laguilar" > wrote in message
...
> Hi all, I read on the knowledge base article 321379 "HOW TO: Add a "Print
> Directory" Feature for Folder in Windows XP"
>
> The instructions work fine, but, when it runs it closes the file, I like
to
> have the file open to modify or format it in a certain way.
> Below are the instructions. I would prefer to either open it in Excel or
> Word.
>
> Thanks
>
> Luis
> Create the Printdir.bat File
> To create the Printdir.bat file:
> 1.. Click Start, click Run, type notepad, and then click OK.
> 2.. 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
>
> 3.. On the File menu, click Exit, and then click Yes to save the
changes.
> 4.. In the Save As dialog box, type %windir%\Printdir.bat, and then
click
> Save.
>
>

Google