tag:blogger.com,1999:blog-2566239812530211359.post1526384206896896652..comments2023-09-08T13:32:23.393+02:00Comments on Bitter Olives: Win32Exception error code 267 "The directory name is invalid"Locivars Vonvikhttp://www.blogger.com/profile/13540150672840232652noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-2566239812530211359.post-88531021824906722352014-11-18T11:14:48.931+01:002014-11-18T11:14:48.931+01:00Thanks a lotThanks a <b>lot</b>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-42943470056674677622014-08-01T06:34:17.119+02:002014-08-01T06:34:17.119+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17226082377581043558noreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-29157665404332084872013-04-12T04:01:47.885+02:002013-04-12T04:01:47.885+02:00Thank you for this postThank you for this postFrederic Torreshttps://www.blogger.com/profile/17273277115960109065noreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-46642432461106209832011-05-13T21:09:47.812+02:002011-05-13T21:09:47.812+02:00Found this page from a google search on error 267....Found this page from a google search on error 267.<br /><br />At first I thought "this doesn't apply to me" because I was just using runas from the command prompt.<br /><br />Then I realized I was sitting inside the personal directory of the original user I was launching from. (I don't know if that line made any sense)<br /><br />I changed my directory to one that both users could access easily and voila! it worked! I only knew to try that because of this post, so thank you very much.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-45396944120178819272009-05-10T05:34:00.000+02:002009-05-10T05:34:00.000+02:00Bosske, it does run as a different user with the p...Bosske, it does run as a different user with the proper privileges. My code does not use the Verb property of PSI though.<br /><br />The property I'm using that you are not is the Domain property. In case of no domain you can supply a single dot character.Locivars Vonvikhttps://www.blogger.com/profile/13540150672840232652noreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-2271201294155008462009-05-08T16:56:00.000+02:002009-05-08T16:56:00.000+02:00Hi there, You won't believe it, but we are working...Hi there, You won't believe it, but we are working on the same problem, and we have the same problem - UAC. We have found a solution to the problem You are having, but we encountered another issue - UAC. We are wondering if You had the same problem, and if You did, can You PLEASE tell us how You solved it, because it has been a big show stopper for us... You can find our code sample below:<br /><br />Did you try to do it with a different user? I strugle with this for a days. It just does not elevate user rights.<br />Code Example:<br />…<br />ProcessStartInfo processInfo = new ProcessStartInfo();<br />SecureString securePassword = new SecureString();<br />foreach (char ch in “testpass”)<br />{<br />securePassword.AppendChar(ch);<br />} // foreach<br />processInfo.UserName = “testuser”;<br />processInfo.Password = securePassword;<br />processInfo.Verb = “runas”;<br />processInfo.FileName = @”c:\windows\system32\cmd.exe”;<br />processInfo.UseShellExecute = false;<br />Process.Start(processInfo);<br />…<br />testuser is administrator. Problem is that this code does not run the process as elevated.Bosskehttps://www.blogger.com/profile/08484796038841122863noreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-66326476745528725802008-12-09T17:07:00.000+01:002008-12-09T17:07:00.000+01:00You do have a reader, and a very appreciative one ...You do have a reader, and a very appreciative one at that! I can't believe the solution, but it works :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-33024302524404635832008-10-24T00:33:00.000+02:002008-10-24T00:33:00.000+02:00I write to practice, and to leave a record of thin...I write to practice, and to leave a record of things that might interest me or anyone else laterLocivars Vonvikhttps://www.blogger.com/profile/13540150672840232652noreply@blogger.comtag:blogger.com,1999:blog-2566239812530211359.post-47663269873413782572008-10-17T14:48:00.000+02:002008-10-17T14:48:00.000+02:00You don't have any reader, so why bother write ? ;...You don't have any reader, so why bother write ? ;-)Anonymousnoreply@blogger.com