Comments (11)
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.
Thanks - perhaps it could say this via STDOUT if the user doesn't have admin rights?
from dokany.
Windows launch a popup asking you the admin rights π
It is your UAC configuration that have disable it.
from dokany.
@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.
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.
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.
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.
"it could not ask for permissions" -> "it could not ask for permissions for printing the version or the usage", I meant. :)
from dokany.
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.
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.
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)
- Stdout not working anymore after fuse_main invocation HOT 2
- `DokanInstanceBuilder.Build` returns before file system is ready HOT 1
- Compatibility with Rising antivirus software HOT 8
- unstable on windews : ceph::buffer::v15_2_0::bad_alloc: Bad allocation [buffer:1] HOT 1
- GetFileInformation Not Called by FileDateTime in VB6 HOT 2
- When is ReadFile() called? HOT 1
- There are some errors when test memfs with winfstest HOT 2
- Dokan2 driver fails to install on Windows 10 HOT 2
- Library - Fail mount with DOKAN_OPTION_CURRENT_SESSION and mount point path
- Install fails on Win11 - Paralles on Mac M1 HOT 5
- Help | How to implement save in dokan HOT 13
- Cannot uninstall Dokan Library - Blocked by pending restart stuck state. HOT 9
- Installer says Dokan 2.1.0.1000 is installed, but it isn't
- dokan limit speed, but windows10 pop-up never displays progress
- How to know the directory update event in memfs when user clicks F5 keyword. HOT 1
- Windows 11 - Saving file by notepad is not working HOT 6
- Need Solution for Error Handling in CloseFile for Remote Drive with FTP Integration
- v2.2.0.1000 is missing from chocolatey HOT 3
- Mirror : File corruption when copying from mounted drive HOT 4
- Cryfs, Dokany and Win 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokany.