<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Deekgeek's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 08 Aug 2008 17:53:40 GMT</pubDate>
    <description>DZone Snippets: Deekgeek's Code Snippets</description>
    <item>
      <title>vbscript include function</title>
      <link>http://snippets.dzone.com/posts/show/2235</link>
      <description>This is a vbscript include function, useful for reusing files in a file library. Honestly, I don't remember where I found this, so if you know, post the attribution in a comment, please.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;' VBScript "Include" routine&lt;br /&gt;Sub Include(sInstFile)&lt;br /&gt;	On Error Resume Next&lt;br /&gt;&lt;br /&gt;	Dim oFSO, f, s&lt;br /&gt;&lt;br /&gt;	Set oFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;	If oFSO.FileExists(sInstFile) Then&lt;br /&gt;		Set f = oFSO.OpenTextFile(sInstFile)&lt;br /&gt;		s = f.ReadAll&lt;br /&gt;		f.Close&lt;br /&gt;		ExecuteGlobal s&lt;br /&gt;	End If&lt;br /&gt;&lt;br /&gt;	Set oFSO = Nothing&lt;br /&gt;	Set f = Nothing&lt;br /&gt;End Sub&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 29 Jun 2006 20:12:18 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2235</guid>
      <author>DeekGeek ()</author>
    </item>
  </channel>
</rss>
