Results 1 to 11 of 11

Thread: Create a USB lock code!!

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Talking Create a USB lock code!!

    Is there anybody know how to create a code that can be put into a USB flash Driver and generate a encrypt code so we can lock that USB. For example if I have a USB flash Driver and I want nobody knows what do I have inside it even if they found it.

    I already knew the code that can make the VB complied code auto run just like when you insert your CD/DVD into your CD/DVD player.

    Another things, this is the code for you if the person that entering password but 3 times wrong then all files inside the usb will be auto delete

    Code:
    Public Sub DeleteAllFiles(ByVal strFolderSpec As String)
    
    On Error GoTo Handler
    
    Dim oFs As New FileSystemObject
    Dim oFolder As FOLDER
    Dim oFile As File
    
    If oFs.FolderExists(strFolderSpec) Then
    Set oFolder = oFs.GetFolder(strFolderSpec)
    On Error Resume Next
    For Each oFile In oFolder.Files
    oFile.Delete True 'setting force to true
    'deletes read-only file
    Next
    End If
    
    Exit Sub
    
    Handler:
    MsgBox Err.description, vbCritical, "Error " & Str(Err.Number)
    
    End Sub
    Last edited by phoanglong; Mar 18th, 2007 at 08:40 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width