<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: VBScript Current Directory (or Folder)</title>
	<atom:link href="http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/</link>
	<description>Windows software installation, packaging &#38; distribution</description>
	<lastBuildDate>Mon, 14 Dec 2009 15:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anthony</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-168</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 14 Dec 2009 15:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-168</guid>
		<description>I must congratulate you on your patience with certain requestors - my hat off to you sir!</description>
		<content:encoded><![CDATA[<p>I must congratulate you on your patience with certain requestors &#8211; my hat off to you sir!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leereid</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-164</link>
		<dc:creator>leereid</dc:creator>
		<pubDate>Mon, 16 Nov 2009 05:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-164</guid>
		<description>Depends what you&#039;re trying to do.

You could use something like:

mystring = &quot;abcxyzdef&quot;
var1 = Left(mystring,3)
var2 = Mid(mystring,3,3)
var3 = right(mystring,3)</description>
		<content:encoded><![CDATA[<p>Depends what you&#8217;re trying to do.</p>
<p>You could use something like:</p>
<p>mystring = &#8220;abcxyzdef&#8221;<br />
var1 = Left(mystring,3)<br />
var2 = Mid(mystring,3,3)<br />
var3 = right(mystring,3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reddy Siva Saran</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-163</link>
		<dc:creator>Reddy Siva Saran</dc:creator>
		<pubDate>Mon, 16 Nov 2009 05:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-163</guid>
		<description>Hi,

I have a dought here

Say there is a string &quot;abcxyzdef&quot;

Now I want the output as &quot;abc&quot; in one variable and xyz in one variable and def in other variable</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a dought here</p>
<p>Say there is a string &#8220;abcxyzdef&#8221;</p>
<p>Now I want the output as &#8220;abc&#8221; in one variable and xyz in one variable and def in other variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leereid</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-161</link>
		<dc:creator>leereid</dc:creator>
		<pubDate>Tue, 22 Sep 2009 02:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-161</guid>
		<description>Sure, what I do for this is first, declare a variable:

Quotes = Chr(34)

Then do something like

filename = Quotes &amp; &quot;c:\temp\myfile.msi&quot; &amp; Quotes


You don&#039;t need to declare the variable, but I do for neatness.</description>
		<content:encoded><![CDATA[<p>Sure, what I do for this is first, declare a variable:</p>
<p>Quotes = Chr(34)</p>
<p>Then do something like</p>
<p>filename = Quotes &amp; &#8220;c:\temp\myfile.msi&#8221; &amp; Quotes</p>
<p>You don&#8217;t need to declare the variable, but I do for neatness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-160</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 21 Sep 2009 23:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-160</guid>
		<description>Hey guys, I&#039;m trying to figure out how to run a script to install something without hardcoding a path.  I have it working EXCEPT when the working directory has a space in it.  Can anyone give me some vbscript code on running something in a working directory with spaces?

Any help would be greatly appreciated.  I usually complete things on my own but this one has gotten the better of me.

Thanks!
Stephen</description>
		<content:encoded><![CDATA[<p>Hey guys, I&#8217;m trying to figure out how to run a script to install something without hardcoding a path.  I have it working EXCEPT when the working directory has a space in it.  Can anyone give me some vbscript code on running something in a working directory with spaces?</p>
<p>Any help would be greatly appreciated.  I usually complete things on my own but this one has gotten the better of me.</p>
<p>Thanks!<br />
Stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leereid</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-152</link>
		<dc:creator>leereid</dc:creator>
		<pubDate>Thu, 16 Jul 2009 01:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-152</guid>
		<description>Try here: http://www.computerperformance.co.uk/vbscript/wmi_process.htm

Or you could google it</description>
		<content:encoded><![CDATA[<p>Try here: <a href="http://www.computerperformance.co.uk/vbscript/wmi_process.htm" rel="nofollow">http://www.computerperformance.co.uk/vbscript/wmi_process.htm</a></p>
<p>Or you could google it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reddy Siva Saran</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-151</link>
		<dc:creator>Reddy Siva Saran</dc:creator>
		<pubDate>Wed, 15 Jul 2009 09:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-151</guid>
		<description>Hi,

Can I get the vbscript for knowing the processes running in the system tray

I mean in windows there will be system tray right?
Now I want to know how to develop the script to know the particular process is running in the system tray or not</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can I get the vbscript for knowing the processes running in the system tray</p>
<p>I mean in windows there will be system tray right?<br />
Now I want to know how to develop the script to know the particular process is running in the system tray or not</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leereid</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-150</link>
		<dc:creator>leereid</dc:creator>
		<pubDate>Tue, 07 Jul 2009 23:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-150</guid>
		<description>If you look at the comment above, it shows how to do the second part of your question, just change 

If Left(file.Name,6) = “NB0001″ Then

to

myString = &quot;SSLVPN-Logs-54541&quot;
If Left(file.Name,Len(myString)) = myString Then

In the &#039;Do Something part then you can get the file contents and use InStr or similar to look for your string.</description>
		<content:encoded><![CDATA[<p>If you look at the comment above, it shows how to do the second part of your question, just change </p>
<p>If Left(file.Name,6) = “NB0001″ Then</p>
<p>to</p>
<p>myString = &#8220;SSLVPN-Logs-54541&#8243;<br />
If Left(file.Name,Len(myString)) = myString Then</p>
<p>In the &#8216;Do Something part then you can get the file contents and use InStr or similar to look for your string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reddy Siva Saran</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-149</link>
		<dc:creator>Reddy Siva Saran</dc:creator>
		<pubDate>Tue, 07 Jul 2009 09:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-149</guid>
		<description>Hi,
Can I know how to write a vbscript for searching a string in a file

Also that file name changes from time to time as the file name starts as SSLVPN-Logs-54541 followed by some number

Can u tell me how to do this</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can I know how to write a vbscript for searching a string in a file</p>
<p>Also that file name changes from time to time as the file name starts as SSLVPN-Logs-54541 followed by some number</p>
<p>Can u tell me how to do this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leereid</title>
		<link>http://leereid.wordpress.com/2008/03/19/vbscript-current-directory-or-folder/#comment-148</link>
		<dc:creator>leereid</dc:creator>
		<pubDate>Wed, 03 Jun 2009 23:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://leereid.wordpress.com/?p=27#comment-148</guid>
		<description>Welcome to VBScript! Absolutely you can use VBScript to do this. I&#039;ll outline how you can do it:

- Create a folder object
- Specify your folder
- Get every file in the folder
- Check it

Here&#039;s some code, put it into a file called &quot;something.vbs&quot;

Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set folder = objFSO.GetFolder(&quot;C:\PROGRAM FILES\VERITAS\NBSCRIPTS\3DR_LOGS&quot;)
Set files = folder.Files

For each file In files
	WScript.Echo file.name
   If Left(file.Name,6) = &quot;NB0001&quot; Then
     &#039;Do Something
   End If
Next</description>
		<content:encoded><![CDATA[<p>Welcome to VBScript! Absolutely you can use VBScript to do this. I&#8217;ll outline how you can do it:</p>
<p>- Create a folder object<br />
- Specify your folder<br />
- Get every file in the folder<br />
- Check it</p>
<p>Here&#8217;s some code, put it into a file called &#8220;something.vbs&#8221;</p>
<p>Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
Set folder = objFSO.GetFolder(&#8220;C:\PROGRAM FILES\VERITAS\NBSCRIPTS\3DR_LOGS&#8221;)<br />
Set files = folder.Files</p>
<p>For each file In files<br />
	WScript.Echo file.name<br />
   If Left(file.Name,6) = &#8220;NB0001&#8243; Then<br />
     &#8216;Do Something<br />
   End If<br />
Next</p>
]]></content:encoded>
	</item>
</channel>
</rss>
