﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>"Write To File Failed" - Need Expertise!!! - SeeqPodDR</title><link>http://www.visualbasicscript.com/</link><description /><copyright>(c) VBScript Forum</copyright><ttl>30</ttl><item><title> RE: "Write To File Failed" - Need Expertise!!! - SOLVED -  Hi "SeeqPodDR" (yfki)</title><description>  Well I figured out a way around the ADODB.Stream problem, had to do with running in .HTA context. </description><link>http://www.visualbasicscript.com/fb.ashx?m=54723</link><pubDate>Thu, 27 Dec 2007 03:15:24 GMT</pubDate></item><item><title> RE: "Write To File Failed" - Need Expertise!!! (yfki)</title><description>  Yup, 10000% sure, I have done plenty of reading. &lt;br&gt;   &lt;br&gt;  My guess... Because its running as .hta, the context, locale, does not allow the stream to save without having some type of hardcoded name.  &lt;br&gt;  The exact same code works if I pass it a string, but thats run as .vbs, which is clearly different then mshta.exe  &lt;br&gt;   &lt;br&gt;  I suppose this was the result of security exploits against the "ADODB.STREAM" spyware etc... &lt;br&gt;   &lt;br&gt;  I am working to see if I can use a script packager to resolve the issue, call an external script to do some utility work, either download the file, or perform the rename. &lt;br&gt;   &lt;br&gt;   &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=54715</link><pubDate>Wed, 26 Dec 2007 15:37:32 GMT</pubDate></item><item><title> RE: "Write To File Failed" - Need Expertise!!! (kirrilian)</title><description>  are you sure that strMatch has a value? </description><link>http://www.visualbasicscript.com/fb.ashx?m=54714</link><pubDate>Wed, 26 Dec 2007 15:30:35 GMT</pubDate></item><item><title> "Write To File Failed" - Need Expertise!!! - SeeqPodDR (yfki)</title><description>  I wrote an .HTA/.vbs Package to do the following: &lt;ul&gt;&lt;li&gt;  Run HTTP Request &lt;br&gt;  &lt;li&gt;Parse XML Response&lt;li&gt;Take Node (Which is a URL)&lt;li&gt;Fill a drop down with the values&lt;li&gt;  Upon change of the ComboBox (A URL is selected) the binary file is downloaded&lt;/ul&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; However, if I use &lt;b&gt;strMatch&lt;/b&gt; instead of &lt;b&gt;"C:\Temp\123.mp3"&lt;/b&gt;&amp;nbsp; inside&amp;nbsp; "&lt;b&gt;Download(URL,myMatch)&lt;/b&gt;"&amp;nbsp;  &lt;br&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp; it fails everytime time :(&amp;nbsp;&amp;nbsp; Please Please Help !! &lt;br&gt;     &lt;br&gt;    I have done everything I can think of regarding passing this value, ensuring its a string etc... Nothing works unless I specifically hardcode the path/filename &lt;br&gt;  I think it has somethign to do with the .HTA side of things because I have used this code before and passed it a string... (Just not in an .HTA) &lt;br&gt;  I have checked file permissions, everything seems fine, plus the script can write to the directory no problem if I hardcode &lt;b&gt;sDest &lt;br&gt;   &lt;br&gt;  &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Error Output&lt;/u&gt; &lt;br&gt;  &lt;/b&gt;&lt;blockquote&gt;&lt;b&gt;Err.Number:&amp;nbsp; 3004&lt;/b&gt; &lt;br&gt;  &lt;b&gt;Err.Description: Write To File Failed&lt;/b&gt; &lt;br&gt;  &lt;b&gt;Err.HelpContext: 1240664&lt;/b&gt; &lt;br&gt;  &lt;b&gt;Err.Source: ADODB.Stream&lt;/b&gt; &lt;br&gt;  &lt;/blockquote&gt; &lt;br&gt;   &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=54710</link><pubDate>Wed, 26 Dec 2007 09:35:23 GMT</pubDate></item></channel></rss>
