<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[DriverPacks.net Forum - How to modify batches to work from different folders?]]></title>
		<link>http://forum.driverpacks.net/viewtopic.php?id=6393</link>
		<description><![CDATA[The most recent posts in How to modify batches to work from different folders?.]]></description>
		<lastBuildDate>Tue, 04 Dec 2012 08:52:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to modify batches to work from different folders?]]></title>
			<link>http://forum.driverpacks.net/viewtopic.php?pid=50069#p50069</link>
			<description><![CDATA[<div class="quotebox"><cite>mr_smartepants wrote:</cite><blockquote><p>Your first &quot;for&quot; loop is missing the end-quotes.&nbsp; Change to read as below:<br /></p><div class="codebox"><pre><code>SET TAGFILE=\OEM
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:\CD\WXPS\OEM&quot; SET &quot;CDDRIVE=%%i:\CD\WXPS&quot; &amp; GOTO DPsFound
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO DIR %%i: &amp;&amp; IF EXIST &quot;%%i:%TAGFILE%&quot; SET &quot;CDDRIVE=%%i:&quot; &amp; GOTO DPsFound
IF EXIST &quot;\$win_nt$.~ls&quot; SET CDDRIVE=\$win_nt$.~ls
:DPsFound</code></pre></div></blockquote></div><p>Thanks, I also noticed that last night but could only test it this morning. Tested and working <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (johnye_pt)]]></author>
			<pubDate>Tue, 04 Dec 2012 08:52:49 +0000</pubDate>
			<guid>http://forum.driverpacks.net/viewtopic.php?pid=50069#p50069</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to modify batches to work from different folders?]]></title>
			<link>http://forum.driverpacks.net/viewtopic.php?pid=50045#p50045</link>
			<description><![CDATA[<div class="quotebox"><cite>johnye_pt wrote:</cite><blockquote><p>CD\WXPS\I386\presetup.cmd and WXPS\presetup.cmd, added 1 line after the SET command:<br /></p><div class="codebox"><pre><code>SET TAGFILE=\OEM
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:\CD\WXPS\OEM SET CDDRIVE=%%i:\CD\WXPS &amp; GOTO DPsFound
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:%TAGFILE%&quot; SET CDDRIVE=%%i:&amp; GOTO DPsFound
:DPsFound</code></pre></div></blockquote></div><p>Your first &quot;for&quot; loop is missing the end-quotes.&nbsp; Change to read as below:<br /></p><div class="codebox"><pre><code>SET TAGFILE=\OEM
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:\CD\WXPS\OEM&quot; SET &quot;CDDRIVE=%%i:\CD\WXPS&quot; &amp; GOTO DPsFound
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO DIR %%i: &amp;&amp; IF EXIST &quot;%%i:%TAGFILE%&quot; SET &quot;CDDRIVE=%%i:&quot; &amp; GOTO DPsFound
IF EXIST &quot;\$win_nt$.~ls&quot; SET CDDRIVE=\$win_nt$.~ls
:DPsFound</code></pre></div><div class="quotebox"><cite>johnye_pt wrote:</cite><blockquote><p>CD\WXPS\OEM\DP_Install_Tool.cmd and WXPS\OEM\DP_Install_Tool.cmd, added 1 line before the last IF:<br /></p><div class="codebox"><pre><code>FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO (
 IF Exist &quot;%%i:\OEM\bin\un7zip.exe&quot; SET &quot;DPLoc=%%i:\OEM&quot; &amp; Set &quot;M=2&quot;
 IF Exist &quot;%%i:\$OEM$\$1\D\&quot;   SET &quot;DPLoc=%%i:\$OEM$\$1&quot; &amp; Set &quot;M=1&quot; &amp; %%i
 IF Exist &quot;%%i:\CD\WXPS\OEM\bin\un7zip.exe&quot; SET &quot;DPLoc=%%i:\CD\WXPS\OEM&quot; &amp; Set &quot;M=2&quot;
 IF &quot;%M%&quot;&gt;=&quot;1&quot; GoTo Found)</code></pre></div></blockquote></div><p>Here&#039;s a more refined expression of your mods:<br /></p><div class="codebox"><pre><code>FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO (
 IF Exist &quot;%%i:\OEM\bin\un7zip.exe&quot; SET &quot;DPLoc=%%i:\OEM&quot; &amp; Set &quot;M=2&quot;
 IF Exist &quot;%%i:\$OEM$\$1\D\&quot; (SET &quot;DPLoc=%%i:\$OEM$\$1&quot; &amp; Set &quot;M=1&quot; &amp; %%i)
 IF Exist &quot;%%i:\CD\WXPS\OEM\bin\un7zip.exe&quot; (SET &quot;DPLoc=%%i:\CD\WXPS\OEM&quot; &amp; Set &quot;M=2&quot;)
 IF &quot;!M!&quot; GEQ &quot;1&quot; GoTo Found
)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mr_smartepants)]]></author>
			<pubDate>Tue, 04 Dec 2012 06:30:24 +0000</pubDate>
			<guid>http://forum.driverpacks.net/viewtopic.php?pid=50045#p50045</guid>
		</item>
		<item>
			<title><![CDATA[How to modify batches to work from different folders?]]></title>
			<link>http://forum.driverpacks.net/viewtopic.php?pid=50036#p50036</link>
			<description><![CDATA[<p>Hi. I&#039;m building a CD that contains CD\WXPP (normal XP), CD\WXPN (nLited XP) and CD\WXPS (nLited XP + DriverPack Mass Storage 11.11). For that to work I copied the I386 folder from each CD folder to the root, renamed each one to the same names above (WXPP, WXPN, WXPS), patched SETUPLDR.BIN, TXTSETUP.SIF and boot file accordingly and used cdshell as boot loader.</p><p>They all install fine in Virtual PC except for WXPS because the drivers/files/folders are not where the batches expect them to be. If I make an ISO of the WXPS folder (all files/folders in root as expected) it installs fine, because I can see the progress bar at the beginning of the GUI mode and at first boot.</p><p>I already know that CD\WXPS\I386\presetup.cmd and CD\WXPS\OEM\DP_Install_Tool.cmd must be edited, but I don&#039;t know if there is any other file I should edit. So far I made the following changes to the 2 batches, but with no success (no progress bars during installation).</p><p>CD\WXPS\I386\presetup.cmd and WXPS\presetup.cmd, added 1 line after the SET command:<br /></p><div class="codebox"><pre><code>SET TAGFILE=\OEM
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:\CD\WXPS\OEM SET CDDRIVE=%%i:\CD\WXPS &amp; GOTO DPsFound
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST &quot;%%i:%TAGFILE%&quot; SET CDDRIVE=%%i:&amp; GOTO DPsFound
:DPsFound</code></pre></div><p>CD\WXPS\OEM\DP_Install_Tool.cmd and WXPS\OEM\DP_Install_Tool.cmd, added 1 line before the last IF:<br /></p><div class="codebox"><pre><code>FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO (
 IF Exist &quot;%%i:\OEM\bin\un7zip.exe&quot; SET &quot;DPLoc=%%i:\OEM&quot; &amp; Set &quot;M=2&quot;
 IF Exist &quot;%%i:\$OEM$\$1\D\&quot;   SET &quot;DPLoc=%%i:\$OEM$\$1&quot; &amp; Set &quot;M=1&quot; &amp; %%i
 IF Exist &quot;%%i:\CD\WXPS\OEM\bin\un7zip.exe&quot; SET &quot;DPLoc=%%i:\CD\WXPS\OEM&quot; &amp; Set &quot;M=2&quot;
 IF &quot;%M%&quot;&gt;=&quot;1&quot; GoTo Found)</code></pre></div><p>Any help would be very appreciated <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (johnye_pt)]]></author>
			<pubDate>Mon, 03 Dec 2012 13:59:44 +0000</pubDate>
			<guid>http://forum.driverpacks.net/viewtopic.php?pid=50036#p50036</guid>
		</item>
	</channel>
</rss>
