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 22 June 2004, 01:40 PM
  #1  
DJ Dunk
Moderator
Support Scoobynet!
Thread Starter
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
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
Old 22 June 2004, 07:15 PM
  #2  
Nog
Scooby Regular
 
Nog's Avatar
 
Join Date: Jul 2003
Posts: 141
Likes: 0
Received 0 Likes on 0 Posts
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
Old 22 June 2004, 10:24 PM
  #3  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
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.
Old 23 June 2004, 09:36 AM
  #4  
DJ Dunk
Moderator
Support Scoobynet!
Thread Starter
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
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
Old 23 June 2004, 01:52 PM
  #5  
JackClark
Scooby Senior
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,853
Received 51 Likes on 34 Posts
Default

from the command prompt
dir [anything else you like] >>list.txt
Old 23 June 2004, 02:37 PM
  #6  
DJ Dunk
Moderator
Support Scoobynet!
Thread Starter
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
Frizzle-Dee
Essex Subaru Owners Club
13
01 December 2015 09:37 AM
the shreksta
Other Marques
26
01 October 2015 02:30 PM
Ned Han
General Technical
0
29 September 2015 09:35 PM
alcazar
Computer & Technology Related
2
29 September 2015 07:18 PM



Quick Reply: Export Directory Listing To Text ?



All times are GMT +1. The time now is 06:51 PM.