<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[DriverPacks.net Forum - Bad Archive Detection for DriverPacks - Help!]]></title>
	<link rel="self" href="http://forum.driverpacks.net/extern.php?action=feed&amp;tid=2895&amp;type=atom"/>
	<updated>2008-07-14T21:23:49Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.driverpacks.net/viewtopic.php?id=2895</id>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22340#p22340"/>
			<content type="html"><![CDATA[<p>i am thinking that if i were to put in a gui switch it would need to be source and dest as the checkboxes.<br />in this way one might select none, one, or both...</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-14T21:23:49Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22340#p22340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22329#p22329"/>
			<content type="html"><![CDATA[<p>so that would prove that the file was good (or not) before we use it.</p><p>it would not tell us if we got a good copy on the destination folder. <br />What good is a validity check if it would allow for a bad copy to the destination?<br />if we say we are verifying files then we must check it again after the copy too...</p><p>this is my point - do it right or dont do it</p><p>i really don&#039;t see the point in doing it when it will cost me an extra five minutes every run and i have yet to have a bad pack in three years. so it will cost me five minutes every run and once in one hundred runs will i have a bad file.</p><p>so i waste 500 minutes (one 8 hour day) on the off chance i will burn one bad disk in three years. <br />i consider this a huge waste of time - if you cant figure out you have a bad file on your own you need a new job...</p><p>PS if you always test in a VM first then you test ALL (not just DriverPacks) the files at one time <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-14T10:10:20Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22329#p22329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22326#p22326"/>
			<content type="html"><![CDATA[<p>why not something like this</p><p>you have make nothing automatic.<br />and you can test it by yourself</p><p><a href="http://img177.imageshack.us/my.php?image=naamloosjo0.jpg"><span class="postimg"><img src="http://img177.imageshack.us/img177/827/naamloosjo0.th.jpg" alt="http://img177.imageshack.us/img177/827/naamloosjo0.th.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Babyboy]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=2488</uri>
			</author>
			<updated>2008-07-14T08:29:33Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22326#p22326</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22319#p22319"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>OverFlow wrote:</cite><blockquote><p>I just wrote a script for you guys so you can check them at any time...</p></blockquote></div><p>Very clever script...I like it! <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[mr_smartepants]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1602</uri>
			</author>
			<updated>2008-07-14T06:29:23Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22319#p22319</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22314#p22314"/>
			<content type="html"><![CDATA[<p>Yeah I hear ya.&nbsp; That extra time factored into testing a bunch of packs a bunch of times could get old.</p><p>Just to clarify though, what I meant by &quot;check once&quot; was a check where say a DP is scanned, and then an entry made in the INI so it isn&#039;t checked again later.&nbsp; But if someone is having problems with corrupt files that probably wouldn&#039;t do any good.</p><p>I assume by your x2 comment that you would check before and after integration, but probably just a check afterwards would do.&nbsp; Whatever <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[ophielx]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=235</uri>
			</author>
			<updated>2008-07-14T02:15:06Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22314#p22314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22306#p22306"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>ophielx wrote:</cite><blockquote><p>I thought the idea of a &quot;check once&quot; sounded good, but really I think if you&#039;re having problems with corrupt files that the &quot;check once&quot; won&#039;t be much better than a check every time.</p><p>I personally don&#039;t see the need for it, but it&#039;s very simple to implement and could be optional so it might be worth a try.</p><p>I did a quick test on this machine (2ghz), and it took 8 seconds to do a&nbsp; 7z.exe t *.7z on LAN/WLAN/Chipset/MassS</p></blockquote></div><p>yeah... if it really only added 30 seconds (to check it twice) it would be more appealing...</p><p>however, i just ran my script above on just the 10 main packs and it took 1min 45sec x 2 = 3.5 minutes<br />so currently i can slipstream a m2 install in about 5 min so almost twice as long to run base as normal<br />And more than twice as long if i have third party DriverPacks too. (run on a P4 2.8 HT)</p><p>I personally would like it to take less time than 5 minutes <br />and each time i update base i do look for ways to streamline the code towards that end. <br />if the archive checks are implemented then making the check optional is guaranteed. <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-13T21:37:38Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22306#p22306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22304#p22304"/>
			<content type="html"><![CDATA[<p>well if we continue with our premise, saying that we will validate the packs, we can not assume that they are still good even though they were good the last time. <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> </p><p>As a programmer i can not assume. If i am going to do validity checks then I will do them well. no sense in doing it poorly. If I say we are validating the files then I must do a Source and then a Destination check and I must do it every time (unless this option were disabled by a GUI check-box which would default to enabled) </p><div class="quotebox"><cite>Helmi wrote:</cite><blockquote><p>Hehe, I knew this was coming and I fully understand you.<br />I was just speculating about how it could be done, if at all.<br />Not saying it is feasible or anything.<br />Also, as I said, this was under some premises of which I did not know whether they were true or not.<br />If 7z does not return a successful/error code then it won&#039;t work I guess.</p></blockquote></div><p>it was PEBKAC the above code works based on the errorlevel setting<br />( I initially tried to cram it all into one line of code - and it turned out i needed a subroutine <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> )</p><div class="quotebox"><cite>Helmi wrote:</cite><blockquote><p>Well, that&#039;s up to the burning program to test/verify (file on disc=file on HDD).</p></blockquote></div><p>Agreed, good point</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-13T21:13:04Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22304#p22304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22302#p22302"/>
			<content type="html"><![CDATA[<p>bump edited my last and cross posted with you Helmi</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-13T17:31:13Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22302#p22302</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22300#p22300"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Jaak wrote:</cite><blockquote><p>sounds impossible to me.<br />it is like a re-iteration?</p><p>Suppose you have a 7z file, you calculate its hash, then write that hash as txtfile (or whatever, with standardised naming) and include the hash in the new 7zip, with a new extention (BTX), so that the DriverPacks BASE has to unpack hash and real DP, check hash txt against file hash..</p></blockquote></div><p>No, that&#039;s not what I meant.<br />The TXT is not supposed to be included in the 7z file - that one is not to be altered at all (that would defy the point of calculating a hash that is supposed to verify the file is unaltered...)</p><p>I was thinking more along a list in the TXT that goes like this</p><p>NAME_of_DP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hash of that DP<br />Name_of_next_DP&nbsp; &nbsp; &nbsp;Hash of next DP</p><p>Anyway, whatever, just a little brain quirk, nothing more.<br />Not even considering whether it&#039;s doable...</p><div class="quotebox"><cite>OverFlow wrote:</cite><blockquote><p>well it is certainly a lot more apealing to me personaly as an option (waste my time / or not)</p></blockquote></div><p>Hehe, I knowthis was coming and I fully understand you.<br />I was just speculating about how it could be done, if at all.<br />Not saying it is feasable or anything.<br />Also, as I said, this was under some premises of which I did not know whether they were true or not.<br />If 7z does not return a succsessful/error code then it won&#039;t work I guess.</p><div class="quotebox"><blockquote><p>should i offer a third choice...&nbsp; &quot;let me see your CD/DVD after you burn it so i can check them again?&quot;<br />IE what happens if it gets corrupted after base is run? (like during the burn process)</p></blockquote></div><p>Well, that&#039;s up to the bruning program to test/verify (file on disc=file on HDD).<br />Nero, for instance, has such an option and I make regular use of it for reasons already known.<br />Basically, each app in the process has to test for its own area of competence - in an ideal world, at least <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Helmi]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=25</uri>
			</author>
			<updated>2008-07-13T17:26:32Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22300#p22300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22297#p22297"/>
			<content type="html"><![CDATA[<p>well it is certainly a lot more appealing to me personally as an option (waste my time / or not)</p><p>should i offer a third choice...&nbsp; &quot;let me see your CD/DVD after you burn it so i can check them again?&quot;<br />IE what happens if it gets corrupted after base is run? (like during the burn process)</p><p>since base copies them to a destination folder i guess i would have to check them twice before and after the copy?<br />at what point can we agree that corrupt files are rare and wasting time doing checks multiple times on every run is silly...<br />furthermore i often just substitute one pack for another and don&#039;t even run base. what about people like me?<br />I just don&#039;t see a ROI on this... if you guys do then i will concede</p><p>I am sorry, there is no way for us to verify files. it is up to the user, especially since the files are copied and burned after base is run. the only way it can be made to be reliable is if i add the feature to burn a disk from base. at that point then i can do an integrity check from 7zip before and after the burn.&nbsp; This way is the only way that a test would be valid or useful. </p><p>edit..............</p><p>I just wrote a script for you guys so you can check them at any time...</p><div class="codebox"><pre><code>@echo off &amp; color 1f &amp; Cls &amp; ECHO. &amp; ECHO.
rem last edit 2:10 PM 7/13/2008 - Author Overflow - FileName  Verify.cmd
Title 7Zip Archive tester

:Input
echo Cut and Paste the path to the 7-zip files you would like to have validated &amp; echo.
call SET /P SourceFiles=Path? &amp; echo.
SET _result=%SourceFiles:~-1% &amp; IF [%_result%]==[\] Set SourceFiles=%SourceFiles:~0,-1%
IF Exist &quot;%SourceFiles%\*.7z&quot; goto Test
echo Are you sure the 7-zip archives are in that folder? 
goto Input

:Test
FOR %%i IN (%SourceFiles%\*.7z) DO call :Sub1 %%i
goto exit

:Sub1
7z t &quot;%1&quot; &gt; nul
IF %errorlevel%==0 echo %1 	Passed Integrity check
IF NOT %errorlevel%==0 color cf &amp; echo. &amp; echo %1 Failed Integrity check &amp; echo.
goto :eof

:exit
echo Testing complete &amp; pause</code></pre></div><p>if you run the script above from the bin folder in base (where 7z.exe is) it will report a bad archive and turns the window red. </p><p>Sorry this will not be a feature unless we also add burning as a feature - file validity checking is up to the user.</p><p>I will continue to think about this idea and how it may be grown into something effective and useful</p><p>PS M1 will report a bad archive every time <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-07-13T15:50:29Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22297#p22297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22294#p22294"/>
			<content type="html"><![CDATA[<p>Jaak:<br />we have a Dutch language forum.</p><p>Okiedokie...I will think about that</p><br /><p>I use Winrar because I easily can make installers.<br />And that succeeds me not yet with 7zip. (if you have tips for that then gladly)<br />Only if I adapt a driverpack I use 7zip.</p><p>and then happens the same....as Winrar.<br />if a unpack this broken/wrong pack.</p>]]></content>
			<author>
				<name><![CDATA[Babyboy]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=2488</uri>
			</author>
			<updated>2008-07-13T09:37:43Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22294#p22294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22289#p22289"/>
			<content type="html"><![CDATA[<p>I thought the idea of a &quot;check once&quot; sounded good, but really I think if you&#039;re having problems with corrupt files that the &quot;check once&quot; won&#039;t be much better than a check every time.</p><p>I personally don&#039;t see the need for it, but it&#039;s very simple to implement and could be optional so it might be worth a try.</p><p>I did a quick test on this machine (2ghz), and it took 8 seconds to do a&nbsp; 7z.exe t *.7z on LAN/WLAN/Chipset/MassS</p>]]></content>
			<author>
				<name><![CDATA[ophielx]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=235</uri>
			</author>
			<updated>2008-07-13T05:29:22Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22289#p22289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22288#p22288"/>
			<content type="html"><![CDATA[<p>@ babyboy,</p><p>we have a Dutch language forum.<br />Real important problems will get escalated and translated. I think you can explain what happened in our native Dutch language a lot better.</p><p>7zip is freeware.<br />Winrar (last time I looked it was not free..) is not needed, and may have introduced an &quot;unknown&quot; error.<br />Actually, you only need to uncompress when you want to edit the DriverPacks.</p><p>Far as I know, you can not include the hash in the archive, because the hash is calculated after the archive was made.<br />(which made me write the daft suggestion to make the DriverPacks, calculate the hash, pack the DriverPacks with the hash info into a new file, and give it a new extention (not an archive extention) so that base &#039;could&#039; unpack the BTX &quot;zip&quot; wich included the hash txtfile and then read the content of the hash/compare to hash of the real 7z of the DriverPacks... and, actually, nobody could guarantee that THAT hash was not tampered with.. If you were to modify your own dp and did this yourself... The hash we post online cannot be tampered with unless you hack the site. We post the size, the hash, and have always allowed users to modify their DriverPacks because advanced users can/and will. We rely on advanced users to solve issues with driver conflicts.)</p><p>(A re-iteration is something else.. I used the word because it was the first that came to mind.)</p>]]></content>
			<author>
				<name><![CDATA[Jaak]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=327</uri>
			</author>
			<updated>2008-07-13T03:10:03Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22288#p22288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22286#p22286"/>
			<content type="html"><![CDATA[<p>sounds impossible to me.<br />it is like a re-iteration?</p><p>Suppose you have a 7z file, you calculate its hash, then write that hash as txtfile (or whatever, with standardised naming) and include the hash in the new 7zip, with a new extention (BTX), so that the DriverPacks BASE has to unpack hash and real DP, check hash txt against file hash..</p><p>huh?<br />pop a warning when the file was edited by user..</p><p>I have nothing against posting the hash, but I think coding strict file hash safety in DriverPacks BASE is not easy.</p>]]></content>
			<author>
				<name><![CDATA[Jaak]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=327</uri>
			</author>
			<updated>2008-07-13T00:36:42Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22286#p22286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bad Archive Detection for DriverPacks - Help!]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=22285#p22285"/>
			<content type="html"><![CDATA[<p>Sounds good to me.&nbsp; Better get started <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[ophielx]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=235</uri>
			</author>
			<updated>2008-07-12T23:34:26Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=22285#p22285</id>
		</entry>
</feed>
