if an mp3 file is added to usb drive , it should be playable and it should not be copy able to the disk .

what playable ?

all mp3 files are playable , if your usb drive is a player it will definately play the file.

For almost any scheme that can be thought of to protect files on a drive, usb or otherwise, there are ways in which to get around that scheme.

One of the simplest ways is to either try and hide the files or encrypt them or to setup your program with side by side execution and autorun info http://www.codeguru.com/print.php/c14935__4/ but once again any of these can be side stepped by the user.

Also search for side by side or make my manifest.

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.