X-Setup Pro

Select your language: 

Windmeier Internet Services UG

X-Setup Pro | Free Vista Files Certify

X-Setup Pro Plugins

Note for everybody who is visiting this page via a search engine like Google:
This page shows the HTML version (with full source code) of one of our many plugins included with our tweaker utility X-Setup Pro. With this tool you can change over 1,700 settings for Windows and other applications - settings that are normally hidden deep inside the registry. Read more about X-Setup Pro on our Product info about X-Setup ProProduct page.

If you are interested in using this plugin, because it contains a tweak you would like to have, it's easy as 1-2-3-4:

  • Download X-Setup Pro from our Download X-Setup ProDownload page.
  • Install it on your computer and execute it.
  • On the welcome screen, select "Classic mode".
  • Simply use the information about the path and the name of the plugin shown below to easily locate it.

Plugin details

This is the HTML representation of the plugin Clear Prefetch Folder (Version 1.04) which can be found in the following path(s) in X-Setup Pro classic:
System\File System\Windows Prefetching

The plugin can be executed on the following Windows versions (Operation Systems):
Windows XP Windows 2003

Description :
This plug-in will totally erase any files in your Windows XP Prefetch folder. Windows XP creates a %systemroot%\prefetch folder to select files it loads at system startup. Sometimes this list becomes obsolete or littered with programs you do not wish to have prefetched. Clearing it will reset it and start it out fresh. Please note that the first boot after this process will be much slower than the last one, because XP generates the prefetch files again (however, without the useless entries you may had). The second boot-up after using the plug-in will be faster again.

The plugin was created by Xteq Systems (CptSiskoX)
Copyright © Xteq Systems - All Rights Reserved

The plugin offers the following user-interface controls:
Clear Prefetch Folder
Clear Prefetch Folder (Security Wipe!)

Below is the code of this plugin written in "VBScript". Please note that this code can only be executed inside X-Setup Pro.

'sP="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout\LayoutFilePath"
'sP2="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout\LayoutFilePath"

Sub Plugin_Initialize 
End Sub

Sub Plugin_CheckData(ElementIndex)
End Sub

Sub Plugin_Apply(ElementIndex,ElementSubIndex)
 Select Case ElementIndex
   Case 1:
        Call DoWork(false)  
   Case 2:
        Call DoWork(true)
 End Select
End Sub

Sub DoWork(EraseTotally)
    'get prefetch folder

    sBasePath=GetWinDir() & "prefetch"

    if folderexists(sBasePath) then
       'okay, now look for any remaining files...
       Call KillDir(sBasePath,EraseTotally,false)
                   
       'done!
       msginformationTextString 1
    else
       msgerrorTextString 2
    end if
end Sub


Sub KillDir(DirName,EraseTotally,KillDirAlso)

 iC=FileEnum(DirName & "\*.pf")

 for i=1 to iC 
     sFile=FileEnumElement(i)
   
        if EraseTotally then
           lC=TxtOpen(sFile)

           'replace contents of file    
           for l=1 to lC 
               Call TxtSetLine(l,"-")
           next
         

          Call TxtSave()
        end if

        'now kill the file
        FileDelete(sFile)

 next 

 if KillDirAlso=true then
    FolderDelete(DirName)
 end if
End Sub


Sub Plugin_Terminate 
End Sub

Comment by the author: Rundll32.exe advapi32.dll,ProcessIdleTasks execute this command to start the layout.ini building


You can get more detailed information about this plugin inside the application X-Setup Pro. Get the most popular tweaker software for free: Download X-Setup ProDownload X-Setup Pro