<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Toolbox on a different windows drive causes a failure to start C Program</title>
		<link>http://www.k-wave.org/forum/topic/toolbox-on-a-different-windows-drive-causes-a-failure-to-start-c-program</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:09:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/toolbox-on-a-different-windows-drive-causes-a-failure-to-start-c-program" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Toolbox on a different windows drive causes a failure to start C Program"</title>
			<link>http://www.k-wave.org/forum/topic/toolbox-on-a-different-windows-drive-causes-a-failure-to-start-c-program#post-4367</link>
			<pubDate>Fri, 14 Mar 2014 12:57:46 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4367@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi KHO,&#60;/p&#62;
&#60;p&#62;Thanks for the detailed bug report, that's very helpful. I've added it to list of issues for the next release.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>KHO on "Toolbox on a different windows drive causes a failure to start C Program"</title>
			<link>http://www.k-wave.org/forum/topic/toolbox-on-a-different-windows-drive-causes-a-failure-to-start-c-program#post-4363</link>
			<pubDate>Fri, 07 Mar 2014 16:53:41 +0000</pubDate>
			<dc:creator>KHO</dc:creator>
			<guid isPermaLink="false">4363@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;We came across another tiny bug, that only occurrs on very rare occasions.&#60;/p&#62;
&#60;p&#62;To reproduce it, a windows system with at least two drives is necessary (one can be a USB stick). If the toolbox is on one drive, but the (arbitrary) script that is executed is on the other, the execution using the C Binary fails, because the system cannot find the binary.&#60;/p&#62;
&#60;p&#62;The reason for this is the change directory command in the script &#60;em&#62;kspaceFirstOrder3DC.m&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Windows will change the directory, but since the current directory is on a different drive, the change will not take effect unless the drive is also changed. &#60;/p&#62;
&#60;p&#62;For example, if the toolbox is on the C drive (&#34;C:\kwave-path\&#34;) and the script (and also the active directory of matlab) is on D (&#34;D:\scripts\&#34;), a command &#34;cd C:\kwave-path\&#34; will result in the current directory still being &#34;D:\scripts&#34;. Only an additional &#34;C:&#34; as a command will result in &#34;C:\kwave-path\&#34; becoming the active directory.&#60;/p&#62;
&#60;p&#62;I would suggest simply adding the drive change to the command as well by extracting it from the &#60;em&#62;path&#60;/em&#62; variable first. This is possible also by enabling the &#60;em&#62;/d&#60;/em&#62; option of the cd command.&#60;/p&#62;
&#60;p&#62;The background of this odd behavior seems to be that windows allows for multiple active directories (one per drive). I don't see the benefit of this, since you still have to tell it which drive should be active, but that's how it is.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
