desk-top file print-out

  • Thread starter Thread starter geronimo
  • Start date Start date
G

geronimo

I want to print-out the file-names of the ~90 files that
I have on my desk-top; how can I do that?
 
The quick and dirty way:
1) Open a Command Prompt window
2) Navigate to the directory that contains your login name (ie, D:\Documents
and Settings\Administrator)
3) Navigate to the Desktop directory
4) Type "dir > c:\dir.txt" (minus the quotes)
5) Launch notepad or other ASCII reader/editor and load the file dir.txt in
the root of the C: drive
6) Print file

HTH,
Shane
 
Please bear with me as I expose my ignorance.
For #1, I presume this means Start->Run.
For #2 and #3, I used the browse button ultimately showing
all the files; but that is as far as I could get because
there is no file-name selected.
What am I not doing right?
 
Do everything through a command windows - DOS like. eg.
cd\docume~1\adminin~1, etc

the ~1 is used for long folder/filenames

Hope this helps.

-----Original Message-----
Please bear with me as I expose my ignorance.
For #1, I presume this means Start->Run.
For #2 and #3, I used the browse button ultimately showing
all the files; but that is as far as I could get because
there is no file-name selected.
What am I not doing right?
 
For #1 in the Start, Run box type in CMD and then press the enter key.
 
geronimo said:
I want to print-out the file-names of the ~90 files that
I have on my desk-top; how can I do that?

Hi

Put the two following lines in a batch file (text file with .bat file
extension), and double click on it:


dir /b "%USERPROFILE%\Desktop\*.*" | sort >"%temp%\desktop.txt"
start notepad.exe "%temp%\desktop.txt"


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top