| | |
keeping file from web browser cache
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
I have a problem - when I close my web browser it clean up cache files.
The same if is process terminated by tool like debugger or task manager.
Only known way how to do it is break power, but...
So is there a way how to bypass filesystem or kill process at once?
Thanks for any useful advices in advance!
I have a problem - when I close my web browser it clean up cache files.
The same if is process terminated by tool like debugger or task manager.
Only known way how to do it is break power, but...
So is there a way how to bypass filesystem or kill process at once?
Thanks for any useful advices in advance!
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
> is there a way how to ... kill process at once?
posix: kill( process_id, SIGKILL ) ; http://www.hmug.org/man/2/kill.php http://www.hmug.org/man/3/signal.php
windows: TerminateProcess( process_handle, exit_code ) ; http://msdn2.microsoft.com/en-us/lib...14(VS.85).aspx
posix: kill( process_id, SIGKILL ) ; http://www.hmug.org/man/2/kill.php http://www.hmug.org/man/3/signal.php
windows: TerminateProcess( process_handle, exit_code ) ; http://msdn2.microsoft.com/en-us/lib...14(VS.85).aspx
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
> What I want is to freeze content of cache folder.
> Just like I would pull power cord - in this case all files keep as they are
> and after reboot I can copy them
wouldn't it be simpler to just take a snapshot (copy the contents to a backup) of the cache folder when you want it rather than wait till after reboot?
> Just like I would pull power cord - in this case all files keep as they are
> and after reboot I can copy them
wouldn't it be simpler to just take a snapshot (copy the contents to a backup) of the cache folder when you want it rather than wait till after reboot?
•
•
Join Date: Dec 2006
Posts: 1,089
Reputation:
Solved Threads: 164
if you have sufficient disk space to hold snapshots, you could use the Volume Shadow Copy Service. this works similarly to file system snapshots available on unix file systems through mksnap_ffs. see http://en.wikipedia.org/wiki/Volume_Shadow_Copy and http://technet2.microsoft.com/Window....mspx?mfr=true
![]() |
Similar Threads
- SpeedUp Your Window XP Never Than Before (Windows tips 'n' tweaks)
Other Threads in the C++ Forum
- Previous Thread: casting from userData
- Next Thread: Casting problem... (Win32)
Views: 965 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






