 




<?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/"
		>
<channel>
	<title>Comments on: Visual Basic &#8211; Search for the drive locations instead of me setting it (BEFORE compilation to .exe)</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 23:11:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: sdelan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74404</link>
		<dc:creator>sdelan</dc:creator>
		<pubDate>Mon, 01 Mar 2010 20:53:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-74404</guid>
		<description><![CDATA[That&#039;s what I mean. Could you give me the pre-compilation code, since I&#039;m a newbie... and don&#039;t really know much. 

Thanks]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s what I mean. Could you give me the pre-compilation code, since I&#8217;m a newbie&#8230; and don&#8217;t really know much. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74400</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 01 Mar 2010 18:27:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-74400</guid>
		<description><![CDATA[I guess that would work, Vatchy.

My point was that if both, the application and the script (batch file), are on the same path, then there is no need to specify the path.]]></description>
		<content:encoded><![CDATA[<p>I guess that would work, Vatchy.</p>
<p>My point was that if both, the application and the script (batch file), are on the same path, then there is no need to specify the path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74398</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Mon, 01 Mar 2010 17:51:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-74398</guid>
		<description><![CDATA[If I understand your question correctly, you want to insert a flash drive with a program on it and you want the program to run a batch file that is on the same flash drive without knowing what the actual drive letter is going to be.  If that is correct then the answer is easy: copy APP.PATH to a string variable and then get the drive letter from that:

&lt;pre&gt;Drive = left(app.path, 3)&lt;/pre&gt;

will get you &quot;F:&quot; (or whatever the drive is)]]></description>
		<content:encoded><![CDATA[<p>If I understand your question correctly, you want to insert a flash drive with a program on it and you want the program to run a batch file that is on the same flash drive without knowing what the actual drive letter is going to be.  If that is correct then the answer is easy: copy APP.PATH to a string variable and then get the drive letter from that:</p>
<pre>Drive = left(app.path, 3)</pre>
<p>will get you &#8220;F:&#8221; (or whatever the drive is)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdelan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74392</link>
		<dc:creator>sdelan</dc:creator>
		<pubDate>Mon, 01 Mar 2010 15:35:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-74392</guid>
		<description><![CDATA[That&#039;s right.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74386</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:28:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-74386</guid>
		<description><![CDATA[It seems that we have a big communication problem here.

You said this: &quot;&lt;b&gt;&lt;i&gt;Because if I don’t set a specific drive I can’t compile (it won’t let me compile)&lt;/i&gt;.&lt;/b&gt;&quot;

What I understand from that text is that you tried with some code without specifying the drive letter, and you got an error message.  So, what is the code you tried, and what is the error message you got ?]]></description>
		<content:encoded><![CDATA[<p>It seems that we have a big communication problem here.</p>
<p>You said this: &#8220;<b><i>Because if I don’t set a specific drive I can’t compile (it won’t let me compile)</i>.</b>&#8221;</p>
<p>What I understand from that text is that you tried with some code without specifying the drive letter, and you got an error message.  So, what is the code you tried, and what is the error message you got ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdelan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74351</link>
		<dc:creator>sdelan</dc:creator>
		<pubDate>Sat, 27 Feb 2010 07:08:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-74351</guid>
		<description><![CDATA[well, that&#039;s the thing... I&#039;m not sure what the code would be... (so that it finds the drive of the usb by itself once the .exe is ran)]]></description>
		<content:encoded><![CDATA[<p>well, that&#8217;s the thing&#8230; I&#8217;m not sure what the code would be&#8230; (so that it finds the drive of the usb by itself once the .exe is ran)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74290</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 25 Feb 2010 17:14:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-74290</guid>
		<description><![CDATA[In this line:

&lt;pre&gt;shell.run(Chr(34) &amp; (”&lt;b&gt;F:&lt;/b&gt;\workcp.bat”) &amp; Chr(34), 0)&lt;/pre&gt;

The drive letter is inside a string, which is a parameter for the RUN command, and it is not verified at compile time.

Can you post the exact line of code you use when the drive letter is not specified, and the error message you get  ?]]></description>
		<content:encoded><![CDATA[<p>In this line:</p>
<pre>shell.run(Chr(34) &amp; (”<b>F:</b>\workcp.bat”) &amp; Chr(34), 0)</pre>
<p>The drive letter is inside a string, which is a parameter for the RUN command, and it is not verified at compile time.</p>
<p>Can you post the exact line of code you use when the drive letter is not specified, and the error message you get  ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdelan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74277</link>
		<dc:creator>sdelan</dc:creator>
		<pubDate>Thu, 25 Feb 2010 16:06:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-74277</guid>
		<description><![CDATA[Because if I don&#039;t set a specific drive I can&#039;t compile (it won&#039;t let me compile).]]></description>
		<content:encoded><![CDATA[<p>Because if I don&#8217;t set a specific drive I can&#8217;t compile (it won&#8217;t let me compile).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74269</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:45:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-74269</guid>
		<description><![CDATA[Sledan, I still don&#039;t understand.

Why do you say that Visual Basic &quot;wants you to set the specific drive&quot; ?]]></description>
		<content:encoded><![CDATA[<p>Sledan, I still don&#8217;t understand.</p>
<p>Why do you say that Visual Basic &#8220;wants you to set the specific drive&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdelan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/visual-basic-search-for-the-drive-locations-instead-of-me-setting-it-before-compilation-to-exe/#comment-74243</link>
		<dc:creator>sdelan</dc:creator>
		<pubDate>Thu, 25 Feb 2010 04:19:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-74243</guid>
		<description><![CDATA[Visual Basic. it&#039;s going to be on a flash drive, so the drivers will change. Visual basic wants me to set the specific drive F: E: etc.. but I don&#039;t know what the drive will always be...]]></description>
		<content:encoded><![CDATA[<p>Visual Basic. it&#8217;s going to be on a flash drive, so the drivers will change. Visual basic wants me to set the specific drive F: E: etc.. but I don&#8217;t know what the drive will always be&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.079 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 01:58:36 -->