Win32Exception: The directory name is invalid

后端 未结 6 580
故里飘歌
故里飘歌 2020-12-15 23:03

I\'m trying to run a process as a different user that has Administrator privilege in 2 different computers running Vista and their UAC enabled but in one of them I get a Win

6条回答
  •  無奈伤痛
    2020-12-15 23:10

    I had a similar experience and it turned out to be an issue with our development environment. We map our source code directory to a virtual drive using the subst command. So the FileName and WorkingDirectory properties were being set to "W:\SomeFolder\FileName.exe"

    When I hard-coded the FileName & WorkingDirectory to access the files via my actual disk (C:), I stopped receiving the "Invalid Directory" exception.

提交回复
热议问题