![]() |
![]() |
![]() |
|
X-Setup Pro PluginsNote for everybody who is visiting this page via a search engine like Google: 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:
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:
The plugin can be executed on the following Windows versions (Operation Systems):
Description :
The plugin was created by Xteq Systems (CptSiskoX)
The plugin offers the following user-interface controls: 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: |
|