<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: File copy permissions issue in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4638977#M47030</link>
    <description>&lt;P&gt;Can it print in 1000 milliseconds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/ty0d8k56(v=vs.110).aspx"&gt;WaitForexit(1000)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2013 00:35:40 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2013-11-21T00:35:40Z</dc:date>
    <item>
      <title>File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4613807#M47024</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;To my amazement, it only took me two weeks of Googling and amateurish hacking to convert an existing VB6 program to a VB.Net equivalent.&amp;nbsp; It is functioning correctly, except for the formerly trivial last step.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;The program basically finds or creates a plt file and then copies it to the queue of a large format Xerox printer.&amp;nbsp; This has worked without issue&amp;nbsp;in 32bit XP, but in 64bit Win 7, I get permission errors during the file copy action.&amp;nbsp; Using the Scripting method, I get System.Security.SecurityException CTL_E_PERMISSIONDENIED.&amp;nbsp; Trying System.IO.File.Copy, I instead get System.UnauthorizedException mscorlib.dll Access the to path is denied.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;As a test, I ran the command line equivalent (COPY foo.plt networkprintername).&amp;nbsp; In XP, I received a print out as expected; in Win 7, the return line is 'Access is denied.&amp;nbsp;0 file(s) copied.'&amp;nbsp; What is interesting is if I have that printers' queue window open when I send the command line test, an entry briefly appears and disappears with a Document Name starting with the word 'Remote'.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;So far, neither I nor IT can figure out a permissions workaround for this; just curious if anyone else had run into this same problem.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4613807#M47024</guid>
      <dc:creator>kstate92</dc:creator>
      <dc:date>2013-11-12T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614201#M47025</link>
      <description>&lt;P&gt;I can think of 2 possible workarounds, but both require more info on your Xerox.&amp;nbsp; I have used FTP and LPR on HP and KIP devices successfully, but not so much success with Seiko (current problem).&amp;nbsp; HP allows generic access to ftp - the others seem to require a legitimate username and password but don't always make those easy to find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only works if the printer has a built in print processor that supports generic formats.&lt;/P&gt;&lt;P&gt;Here's a link to LPR for Xerox (&lt;A href="http://www.office.xerox.com/userdoc/P750/resource/network.12.html" target="_blank"&gt;http://www.office.xerox.com/userdoc/P750/resource/network.12.html&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:15:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614201#M47025</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2013-11-12T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614549#M47026</link>
      <description>&lt;P&gt;Just a WAG: this might be related to the current UAC setting.&amp;nbsp; That can get in the way of certain automated processes (as it is designed to do), especially with relation to permissions to do things in certain local and a lot of remote folder locations.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614549#M47026</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2013-11-12T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614637#M47027</link>
      <description>&lt;P&gt;That occured to the IT guy too.&amp;nbsp; I recall him setting the UAC to nothing whilst remoted-in to my box with no success.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:50:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614637#M47027</guid>
      <dc:creator>kstate92</dc:creator>
      <dc:date>2013-11-12T19:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614923#M47028</link>
      <description>&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;I've&amp;nbsp;done&amp;nbsp;this and its worked:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Dim myProcess As New Process&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Dim thisPrinter As String = "TheOneWhoseDriversCreatedThePLT"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Dim someFile As String = "c:\temp\somefile.plt"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Dim arg = "/C COPY /B " &amp;amp; Chr(34) &amp;amp; someFile &amp;amp; Chr(34) &amp;amp; " " &amp;amp; thisPrinter &amp;amp; " &amp;amp;&amp;amp; exit"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.StartInfo.FileName = "cmd.exe"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.StartInfo.Arguments = arg&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.StartInfo.CreateNoWindow = True&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.Start()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.WaitForExit(1000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;If Not myProcess.HasExited Then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.Kill()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;End If&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;myProcess.Close()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Calibri" color="#000000"&gt;Your mileage my vary....&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:16:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4614923#M47028</guid>
      <dc:creator>Mikko</dc:creator>
      <dc:date>2013-11-12T21:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4638809#M47029</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Huh.&amp;nbsp; I tried this snippet of code and... nothing.&amp;nbsp; No print, but also no error or exception written out (I wrapped&amp;nbsp;the MyProcess.Start() in a&amp;nbsp;Try-Catch block).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The only thing that happens is a brief entry in the network printer queue titled "Remote Downlevel Document" with Status of Spooling, my Windows username as the Owner,&amp;nbsp;Pages of N/A while Size, Submitted, and Port remains blank.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 22:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4638809#M47029</guid>
      <dc:creator>kstate92</dc:creator>
      <dc:date>2013-11-20T22:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4638977#M47030</link>
      <description>&lt;P&gt;Can it print in 1000 milliseconds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/ty0d8k56(v=vs.110).aspx"&gt;WaitForexit(1000)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 00:35:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4638977#M47030</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-11-21T00:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: File copy permissions issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4641005#M47031</link>
      <description>&lt;P&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; MyProcess.StartInfo&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .FileName =&lt;/FONT&gt;&lt;FONT face="Consolas" color="#a31515"&gt;&lt;FONT face="Consolas" color="#a31515"&gt;&lt;FONT face="Consolas" color="#a31515"&gt;"cmd.exe"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Arguments = strArg&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .WindowStyle =&lt;/FONT&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;ProcessWindowStyle&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.Hidden&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="arial,helvetica,sans-serif"&gt;.CreateNoWindow =&lt;/FONT&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;Try&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyProcess.Start()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;Catch&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt; er &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;Exception&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;&lt;FONT face="Consolas" color="#2b91af"&gt;Console&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;.WriteLine(er)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;&lt;FONT face="Consolas" color="#0000ff"&gt;Try&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyProcess.WaitForExit(&lt;FONT color="#ff0000"&gt;1500&lt;/FONT&gt;) 'this is what I already had it set to&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The Swamp - I've never understood forum sites that forbid searching without having an account.&amp;nbsp; Guess I'll have to sign up.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 13:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/file-copy-permissions-issue/m-p/4641005#M47031</guid>
      <dc:creator>kstate92</dc:creator>
      <dc:date>2013-11-21T13:12:18Z</dc:date>
    </item>
  </channel>
</rss>

