Export Directory Listing To Text ?
#1
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
![Question](https://www.scoobynet.com/images/icons/icon5.gif)
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
![Smile](https://www.scoobynet.com/images/smilies/smile.gif)
#2
![Wink](https://www.scoobynet.com/images/icons/icon12.gif)
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
#3
Scooby Regular
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](https://www.scoobynet.com/images/icons/icon1.gif)
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.
#4
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
![Default](https://www.scoobynet.com/images/icons/icon1.gif)
Thanks for your help.
I found a bit of software to export the information I needed in the end![Smile](https://www.scoobynet.com/images/smilies/smile.gif)
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
![Smile](https://www.scoobynet.com/images/smilies/smile.gif)
Shame MS didn't put something so simple into their OS's.
Thanks,
Dunk
#6
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
![Default](https://www.scoobynet.com/images/icons/icon1.gif)
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
29 September 2015 07:18 PM