<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Samuel Haddad &#187; Permission Denied</title> <atom:link href="http://samuelhaddad.com/tag/permission-denied/feed/" rel="self" type="application/rss+xml" /><link>http://samuelhaddad.com</link> <description></description> <lastBuildDate>Thu, 03 Nov 2011 16:32:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>VBscript Permission Denied 800A0046 Solution</title><link>http://samuelhaddad.com/2009/06/26/vbscript-permission-denied-800a0046-solution/</link> <comments>http://samuelhaddad.com/2009/06/26/vbscript-permission-denied-800a0046-solution/#comments</comments> <pubDate>Fri, 26 Jun 2009 18:58:10 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Desktop Enginnering]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[800A0046]]></category> <category><![CDATA[Copy and Paste]]></category> <category><![CDATA[Error]]></category> <category><![CDATA[File System Object]]></category> <category><![CDATA[FileSystemObject]]></category> <category><![CDATA[Permission]]></category> <category><![CDATA[Permission Denied]]></category> <category><![CDATA[VBScript]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=412</guid> <description><![CDATA[I was helping a friend write some VBscript the other day. I was trying to write a simple copy function and I kept getting permission denied. However I was logged in locally as the administrator so that could not be it. My code looked something like: The Solution is: add &#8220;\&#8221; add the end of [...]]]></description> <content:encoded><![CDATA[<p>I was helping a friend write some VBscript the other day. I was trying to write a simple copy function and I kept getting permission denied. However I was logged in locally as the administrator so that could not be it.</p><p>My code looked something like:</p><pre class="brush: vb; title: ; notranslate">
Sub CopyFile(source, destination)
	set filesys=CreateObject(&quot;Scripting.FileSystemObject&quot;)
	If filesys.FileExists(source) Then
	   filesys.CopyFile source, destination
	End If
End Sub
</pre><p><strong>The Solution is:</strong> add  &#8220;\&#8221; add the end of any of your path names like<br
/> Dim destinationpath<br
/> destinationpath = &#8220;C:\&#8221; &#038; myfolder &#038; &#8220;\&#8221;</p><p>Hope this helps someone else.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2009/06/26/vbscript-permission-denied-800a0046-solution/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
