Giter Club home page Giter Club logo

Comments (11)

Maxhy avatar Maxhy commented on September 21, 2024

That's probably because your command prompt is not executed with administrator rights. That's how Windows work with UAC... not really user friendly I agree.
You should run CMD with administrator rights before running dokanctl exe file.

from dokany.

HaleTom avatar HaleTom commented on September 21, 2024

Thanks - perhaps it could say this via STDOUT if the user doesn't have admin rights?

from dokany.

Liryna avatar Liryna commented on September 21, 2024

Windows launch a popup asking you the admin rights πŸ˜„
It is your UAC configuration that have disable it.

from dokany.

HaleTom avatar HaleTom commented on September 21, 2024

@Liryna I granted the permissions on the UAC popup. It seems that there is a STDOUT redirection going on when cmd.exe isn't run as Admin... and no message to tell the user to run it as such

from dokany.

Liryna avatar Liryna commented on September 21, 2024

it is not a redirection.
Windows start dokanct.exe in another shell with admin rights and close it after the run.

It mean dokanct.exe never was launched, even not a part in your user cmd.

from dokany.

HaleTom avatar HaleTom commented on September 21, 2024

Gotcha.

So does the UAC happen because of magic flags on the .exe file, or does the .exe request the UAC priviledges?

Because if it's the latter, it would make sense to do the argument checking / usage before the UAC.

from dokany.

suy avatar suy commented on September 21, 2024

It's in the embedded manifest. Otherwise, yes, it could not ask for for permissions, so if you run it from a non-admin cmd.exe it would print normally. But the permissions are raised before the main function is run, so this can't be done. I have shortcut to run a cmd.exe as administrator, because sooner or later I face this problem, not only with dokanctl.exe.

from dokany.

suy avatar suy commented on September 21, 2024

"it could not ask for permissions" -> "it could not ask for permissions for printing the version or the usage", I meant. :)

from dokany.

marinkobabic avatar marinkobabic commented on September 21, 2024

If the option STDOUT is passed, the message "Press any key to continue..." should be shown and this way the problem is solved.

from dokany.

suy avatar suy commented on September 21, 2024

Yeah, I remember the first C tutorials I saw that all ended with a getchar() or system("PAUSE") to have that effect. It's ugly, but it could work too. :-)

from dokany.

Liryna avatar Liryna commented on September 21, 2024

It is a cool idea guys but there is not STDOUT option ☺️
dokanctl always write in stdout.

There is two possibility:

  • add an option to wait before quit getchar() or system("PAUSE") (like @suy say ❀️ )
  • use a very simple bat script like:
call dokanctl /v
pause

I think the second option is more simple and let dokanctl more clean.

from dokany.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.