Business Software/MS Explorer

Advertisement


Question
How can I print a list of the folder contents in Explorer? I've tried the Prin.bat that Microsoft suggests, but I'd like to have the folder and filename at the left, followed by the size and date/time. They have it reversed. I don't know if there are switches that would solve this or not. The code they gave me is:
@echo off
  dir %1 /-p /o:ng > "%temp%\Listing"
  start /w notepad /p "%temp%\Listing"
  del "%temp%\Listing"
  exit


Answer
You can't change the order of columns displayed by the DIR command. You can create the text file, then bring it into Excel or Access as a fixed width file and parse it into the columns, then you can change the column order.

Hope this helps,
Scott<>
Microsoft Access MVP 2007

The code you displayed creates the text file. That's why I didn't mention it.  

Business Software

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer some questions on a wide variety of business applications, including MS Office, Lotus Smartsuite, Visio, Notes and many others.

Experience

I have over 16 years of experience as an IT professional, supporting a wide variety of business applications.

©2012 About.com, a part of The New York Times Company. All rights reserved.