Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 20th, 2006, 4:53 PM   #11
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
It creates files for applications as you run them, not before. Startups for every application you use will be slower first time. If you think it's worth it, by all means do it, but it's by no means something that needs to be done so often as to have a script written for it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 20th, 2006, 5:15 PM   #12
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 364
Rep Power: 0 King is an unknown quantity at this point
Quote:
Originally Posted by Ooble
If you think it's worth it, by all means do it, but it's by no means something that needs to be done so often as to have a script written for it.
I totally agree with that.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Aug 20th, 2006, 8:05 PM   #13
NightShade01
Programmer
 
Join Date: Oct 2005
Posts: 52
Rep Power: 3 NightShade01 is on a distinguished road
I agree with you both in that deleting it will serve no purpose for performance or disk space gain....however the program which i am writing it for like i said is a bigger app that when done will hopefull be standardized to all intro techs. Right now when a customer brings their computer in for what we deam a "tune up" standard policy is cleaning out the prefetch folder. so while i agree with you it serves no purpose....it's easier to have intro techs running a standarized program and following procedure then everyone doing their own thing. Does that make more sense though?

personally i don't agree with nuking the whole prefetcher but i can't fight the system.
NightShade01 is offline   Reply With Quote
Old Aug 21st, 2006, 1:17 PM   #14
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
In that case, I wouldn't use the batch file method - using external applications is never a good idea when it's just as easy to do it yourself.

This code may work - I haven't tested it:
Dim PrefetchDir as DirectoryInfo = New DirectoryInfo("%WINDIR%\Prefetch")
Dim files() as FileInfo = PrefetchDir.GetFiles()

Foreach file In files
    file.Delete()
End Foreach
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EXECryptor software protection Jean5 C++ 35 Oct 10th, 2006 7:10 PM
Little help whoawhoayoyo Assembly 8 Apr 18th, 2006 7:10 PM
How to post a question nnxion C++ 10 Jun 3rd, 2005 11:53 AM
How to post a question nnxion C++ 0 Jun 3rd, 2005 8:55 AM
How to post a question nnxion C 0 Jun 3rd, 2005 8:55 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC