Export Directory Listing To Text ?
Thread Starter
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
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
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
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
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
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?
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.
dunno if they will get them though.. if you get stuck drop me a mail.. allways like a challenge.
Thread Starter
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
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
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
Thread Starter
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
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
dir [anything else you like] >>list.txt
Thread
Thread Starter
Forum
Replies
Last Post
alcazar
Computer & Technology Related
2
Sep 29, 2015 07:18 PM








