Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error starting batch file #6

Closed
graphixillusion opened this issue Jan 13, 2020 · 3 comments
Closed

error starting batch file #6

graphixillusion opened this issue Jan 13, 2020 · 3 comments

Comments

@graphixillusion
Copy link

As the title says, with the just released 0.5.2 version i got this error when i try to start a batch file as admin:

Server Error:System.ComponentModel.Win32Exception (0x80004005): Unable to find specified file
   in System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   in gsudo.Helpers.ProcessFactory.StartInProcessAtached(String filename, String arguments)
   in gsudo.ProcessHosts.AttachedConsoleHost.<Start>d__0.MoveNext()
Info: Elevated process exited with code 999
@gerardog
Copy link
Owner

I was able to reproduce the issue. Thanks for reporting. I will add a test case for this scenario.
I think StartWithCreateProcess doesn't run batch files if the .bat extension is not specified.

I will release a fix. In the meantime, please use.

gsudo batchfile.BAT --> Add '.bat'
or
gsudo cmd /c batchfile

@gerardog
Copy link
Owner

gerardog commented Jan 13, 2020

The fix was released in v0.5.3.
Please let me know if this fixes the issue for you.
Thanks for reporting!

@graphixillusion
Copy link
Author

I confirm that with the .3 update everything works good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants