title: can I compile a delphi xe2 with VBS code as a resource or dll
body: <p>I have a few things like running SFC, defrag, and reset the page file and so on, things that can be done within windows VBScript, I am just wondering if I can compile that code as a resource and call it as needed.  Thanks.</p>
  
  <p>Lee</p>