View Single Post
  #1  
Old 03-27-2003, 05:34
kade
 
Posts: n/a
Extracting files from a temp directory

Hi,

I am looking at a target which has its own compression routine for compressing png files. When the program reads the compressed file it makes a temporary png file in the temp but it immediately deletes it. I found this out by using filemon.

If I could save this png file, my objective would be reached. I tried writing a small script to capture the file, but my script does not seem fast enough to capture the png file.

Here is the vbs script I put in the temp directory :

set fs=createobject("Scripting.FileSystemObject")
do while 1
if fs.fileexists("*.png") then
fs.copyfile "*.png", "\test\", true
end if
loop

Does anyone has tips how I can procede?

Thanks,

Kade
Reply With Quote