[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

BeeJ

4/8/2012 8:36:00 PM

Is there a way using VB6 to make a drive letter?
Programs like TrueCrypt create a pseudo drive to store and retrieve
files. This is what I would like to do.
e.g.
List all current drives. can do
Allow coice of unused drive letter. can do
Create the drive. cannnot do.
Read and write to a drive. can do.

Yeah, I know, I can do all the easy stuff.

Anyway, does TrueCrypt create a folder that it then makes it fake a
drive letter? i.e. elevate a folder to a drive status somehow? how?

I know how to monitor a folder to watch for changes going into and
acting on files in that folder (new, attribute change and delete) and
its subfolders but I do not know how to monitor when a file is copied
from that folder.

How do I determine if a file is copied from a folder? (without aving to
montor all other possible folders for incoming?

--
Noah's Ark was built by amateurs,
The Titanic was built by professionals.
Row, row, row your boat gently down the stream ...
Life is but a dream!


4 Answers

MikeB

4/9/2012 3:13:00 AM

0


"BeeJ" <nospam@spamnot.com> wrote in message
news:jlsss3$osc$1@speranza.aioe.org...
> Is there a way using VB6 to make a drive letter?
> Programs like TrueCrypt create a pseudo drive to store and retrieve files.
> This is what I would like to do.
> e.g.
> List all current drives. can do
> Allow coice of unused drive letter. can do
> Create the drive. cannnot do.
> Read and write to a drive. can do.
>
> Yeah, I know, I can do all the easy stuff.
>
> Anyway, does TrueCrypt create a folder that it then makes it fake a drive
> letter? i.e. elevate a folder to a drive status somehow? how?

at a Command Prompt, type Subst /?



> I know how to monitor a folder to watch for changes going into and acting
> on files in that folder (new, attribute change and delete) and its
> subfolders but I do not know how to monitor when a file is copied from
> that folder.
>
> How do I determine if a file is copied from a folder? (without aving to
> montor all other possible folders for incoming?
>
> --
> Noah's Ark was built by amateurs,
> The Titanic was built by professionals.
> Row, row, row your boat gently down the stream ...
> Life is but a dream!
>
>


BeeJ

4/10/2012 12:46:00 AM

0

So how do I do the same from VB6 without having to go through code of
issuing a command. Is there not an API call that does this?

And, how do I monitor accessing or copying files from this virtual
drive?

--
Noah's Ark was built by amateurs,
The Titanic was built by professionals.
Row, row, row your boat gently down the stream ...
Life is but a dream!


Ron Weiner

4/10/2012 1:59:00 AM

0

BeeJ wrote on 4/9/2012 :
> So how do I do the same from VB6 without having to go through code of issuing
> a command. Is there not an API call that does this?
>
> And, how do I monitor accessing or copying files from this virtual drive?


http://lmgtfy.com/?q=vb6+create+virtual+drive+wit...

You might consider at least attempting to do a littl research.

Rdub


ObiWan

4/10/2012 2:31:00 PM

0


> Anyway, does TrueCrypt create a folder that it then makes it fake a
> drive letter? i.e. elevate a folder to a drive status somehow? how?

Using a kernel driver which "simulates" a real drive but instead is
controlled by the TC code

> I know how to monitor a folder to watch for changes going into and
> acting on files in that folder (new, attribute change and delete) and
> its subfolders but I do not know how to monitor when a file is copied
> from that folder.

you'll need to hook the filesystem APIs to receive such notifications;
have a look at the "process monitor" tool from sysinternals

> How do I determine if a file is copied from a folder? (without aving
> to montor all other possible folders for incoming?

notice that monitoring if a file is copied *from* a folder isn't a good
approach to setup some kind of "protection scheme" in case that's what
you're trying to achieve; always keep in mind that if your code runs on
an end user machine (that is, outside your reach) there's little (or
even nothing) forbidding the machine owner from running your app inside
a debugger and do literally WHATEVER he wants with it