School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 306,959 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,927 people online right now. Registration is fast and FREE... Join Now!




Anti-formatting lock on thumb drive

 

Anti-formatting lock on thumb drive

adgarci

5 Nov, 2009 - 04:19 PM
Post #1

New D.I.C Head
*

Joined: 26 Aug, 2009
Posts: 27



Thanked: 1 times
My Contributions
I was talking to some of my friends a little wile ago and a few said they've left their thumb drive in the media center and after a period they found the drive, but completely empty. So I was wondering if their was some way to have some sort of program on a thumb drive that would require a user to enter a password to delete more than 3 files, maybe with-in a set time span of each other. Thanks for any help!

By the way, I'm in a C# class so that is a preferred language, but if one can do this better, I'm okay with it.

User is offlineProfile CardPM
+Quote Post


nemosis

RE: Anti-formatting Lock On Thumb Drive

6 Nov, 2009 - 03:33 PM
Post #2

New D.I.C Head
*

Joined: 24 Jun, 2009
Posts: 41



Thanked: 1 times
My Contributions
What your asking is possible within limits, but why would you want to do this?
If it's because you don't want *other* people removing files from your thumb drive I wouldn't even bother trying to help you, because it would turn into a project.
If it's because you don't want to accidently remove files from your thumb drive then that shouldn't be as hard as trying to prevent other people from removing files.

[if you want protection against yourself]
if you're using windows or mac you should learn about
DDK (driver development kit)

What *exactly* are you trying to do?
What os do you have?
What are your goals?
Why are you doing this?

I don't understand what you mean by your friends found out that their thumb drives were empty. Is it because someone else deleted them or is it because someone made a program that would after a certain amount of time?
User is offlineProfile CardPM
+Quote Post

adgarci

RE: Anti-formatting Lock On Thumb Drive

7 Nov, 2009 - 01:30 PM
Post #3

New D.I.C Head
*

Joined: 26 Aug, 2009
Posts: 27



Thanked: 1 times
My Contributions
Okay I was somewhat vague, I want to try to write my own program that detects a user is deleting a file on a certain drive and ask "Are you sure?" and require a short code. Though I am reconsidering this due to the fact that I have yet to learn how to program keyboard events.

QUOTE
I don't understand what you mean by your friends found out that their thumb drives were empty. Is it because someone else deleted them or is it because someone made a program that would after a certain amount of time?


As for this, the school finally finds the drive, just formated, so the person manually formated it.

This would stop myself from being so quick with the delete key.

I want to do this so that if one of my friends forgets their drive and the wrong person finds it they can't harm the files unless they do write a program to do it for them.

last as for OS, its XP.

Again I am reconsidering doing this, but it would be a good learning experience, it already has been.

Thank you
User is offlineProfile CardPM
+Quote Post

salindor

RE: Anti-formatting Lock On Thumb Drive

7 Nov, 2009 - 08:36 PM
Post #4

D.I.C Head
Group Icon

Joined: 10 Nov, 2006
Posts: 202



Thanked: 14 times
Dream Kudos: 75
My Contributions
It is better to purchase a thumbdrive designed todo this. There are thumbdrives that require a password to access its contents. The reason it is better to get a thumb drive with this features; is you need protection from a hardware level. If the thumbdrive doesn't have the hardware to protect its contents then there is no program you can write todo this in the case of a lost thumbdrive.

How are you going to protect its contents when I plug it into linux box with some C# program you wrote?
User is offlineProfile CardPM
+Quote Post

adgarci

RE: Anti-formatting Lock On Thumb Drive

8 Nov, 2009 - 09:09 AM
Post #5

New D.I.C Head
*

Joined: 26 Aug, 2009
Posts: 27



Thanked: 1 times
My Contributions
thats a good point and a second reason y i decided to not try this
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 04:01AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month