Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Export Directory Listing To Text ?

Thread Tools
 
Search this Thread
 
Old Jun 22, 2004 | 01:40 PM
  #1  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Question Export Directory Listing To Text ?

Can I export a directory listing from the Temporary Internet Files directory to a text file ?

I need to capture all columns, ie. Name, Internet Address, Type, Size, Expires, Last Modified, Last Accessed & Last Checked.

How do I do this ? I tried dir from the command prompt using switches for hidden & system files but it doesn't list anything ?

Help !

Cheers,
Dunk
Reply
Old Jun 22, 2004 | 07:15 PM
  #2  
Nog's Avatar
Nog
Scooby Regular
 
Joined: Jul 2003
Posts: 141
Likes: 0
Wink

Dunk

Not the exact answer you're after, but some shell script that might get you on the way. The problem you're having is that the temp internet files are stored in System dirs, not hidden dirs, thus the /as on the "dir" command:



@echo off

setlocal

set USER=<YOUR USER NAME GOES HERE>
set TEMP_INT_DIR=c:\documents and settings\%USER%\Local Settings\Temporary Internet Files\Content.IE5

for /f %%D in ('dir "%TEMP_INT_DIR%" /as/ad/b') do call :PROCESS_DIR %%D

endlocal

goto END



:PROCESS_DIR

set CURRENT_DIR=%TEMP_INT_DIR%\%1

dir "%CURRENT_DIR%"

goto END



:END
Reply
Old Jun 22, 2004 | 10:24 PM
  #3  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Default

ive got some vbscripts that can get file properties at work...

dunno if they will get them though.. if you get stuck drop me a mail.. allways like a challenge.
Reply
Old Jun 23, 2004 | 09:36 AM
  #4  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Default

Thanks for your help.

I found a bit of software to export the information I needed in the end

Shame MS didn't put something so simple into their OS's.

Thanks,
Dunk
Reply
Old Jun 23, 2004 | 01:52 PM
  #5  
JackClark's Avatar
JackClark
Scooby Senior
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Dec 2000
Posts: 20,896
Likes: 53
From: Overdosed on LCD
Default

from the command prompt
dir [anything else you like] >>list.txt
Reply
Old Jun 23, 2004 | 02:37 PM
  #6  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Default

Tried that, but it doesn't work for the Temporary Internet Files directory.

Originally Posted by JackClark
from the command prompt
dir [anything else you like] >>list.txt
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
Jul 2, 2023 01:54 PM
Frizzle-Dee
Essex Subaru Owners Club
13
Dec 1, 2015 09:37 AM
the shreksta
Other Marques
26
Oct 1, 2015 02:30 PM
Ned Han
General Technical
0
Sep 29, 2015 09:35 PM
alcazar
Computer & Technology Related
2
Sep 29, 2015 07:18 PM




All times are GMT +1. The time now is 09:13 AM.