Can any body help me by providing the VB Code to restrict copying through USB Port

Hi,

I am not sure about your pupose to restrict copying files but if you like to disable the USB drive you can change the following registry key to achieve it.

"HKLM\system\currentcontrolset\services\USBstor\start" to 4

using the RegWrite method in wsh.


Regards
Mari

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.