Getting started with Dokan .NET

285 views
Skip to first unread message

Dodge-Oh

unread,
Jun 20, 2016, 8:11:09 AM6/20/16
to Dokan
Hello!

I'd like to get started with developing a Dokan.NET app.
What I've done so far is clone this repo
I tried running the sample code, but naturally it requires dokan1 to be installed. However there are so many versions, and variants to choose from, that I'm stuck.

As I'd be developing the app, I guess I'll need a debug version, but I'm unsure; also: If I run the finished app on multiple computers, will they all need to have a Dokan redist version installed, or not?

Thank you for your help!

Liryna

unread,
Jun 20, 2016, 1:38:48 PM6/20/16
to Dokan
Hello Dodge-Oh,

If you cloned the repository, it is the 1.0.0-RC3 that you have to us.
Otherwise if you use nuget package, Pre-release package are for the pre-release of Dokany and release for the Dokany release.

I don't really think you will need the debug version if you are using Dokan.net. Debug version is more for having the kernel debug output if you want to go further.
Redist version should be used if computers are not updated and without .NET 4.

Best regards,

Dodge-Oh

unread,
Jun 21, 2016, 3:36:21 AM6/21/16
to Dokan
Thank you for the clarification! If I'll have any further questions, I'll be sure to ask them here. :)

Dodge-Oh

unread,
Jun 22, 2016, 5:17:48 AM6/22/16
to Dokan
Dear Liryna,
I ask for your help, once again. After setting up, I've dived into the example projects, and started writing my own.
However, both examples effectively mirror another FS - well one mirrors the registry, but that's not the point now -

I'd like to create a new, fresh FS, without mirroring anything, then run methods on the files copied into it, then when the program shuts down, these files can be removed, they don't need to be stored afterwards.
I don't really know how to start.

I am sorry if I bother you, or seem completely clueless (I am. :D ) but I'm still just a student, not a pro developer. :(

Thank you for your help!

2016. június 20., hétfő 19:38:48 UTC+2 időpontban Liryna a következőt írta:

Liryna

unread,
Jun 22, 2016, 2:13:41 PM6/22/16
to Dokan
Hi Dodge-Oh,

Seems like in your case you would like to create a virtual FS like a full memory FS ?

I think you will need to code an FS that store the directory tree as a binary tree if I can say and that data of the files link with it.

As each request of Dokan CreateFile / Readfile / GetFileInformation / ... you will look into your binary tree and answer with the proper data.

This binary tree can easily be stored as a member of your DokanOperations Class.

I hope I answer you correctly :D
Reply all
Reply to author
Forward
0 new messages