hello..
hey guys , can anyone help me about : how to copy files from the USB flash disk drive Automatically ?!
please give me anything about that .. keywords .. some codes or anything ..
thanks ...
how to copy files from the USB flash disk
Page 1 of 14 Replies - 3418 Views - Last Post: 20 September 2010 - 02:21 PM
Replies To: how to copy files from the USB flash disk
#2
Re: how to copy files from the USB flash disk
Posted 20 September 2010 - 06:30 AM
sounds like Virus!!!!!!
OOOOP
OOOOP
#3
Re: how to copy files from the USB flash disk
Posted 20 September 2010 - 06:45 AM
I can see non-malicious intent for this, like updating songs from your iPod to your iTunes library.
@sawer2: Perhaps you should search for VB.NET USB API, as well as check out the VB.NET tutorials section. Once you know what the drive is for the flash drive (ie., the F drive), it comes down to a matter of opening a stream to the path and file i/o.
@sawer2: Perhaps you should search for VB.NET USB API, as well as check out the VB.NET tutorials section. Once you know what the drive is for the flash drive (ie., the F drive), it comes down to a matter of opening a stream to the path and file i/o.
#4
Re: how to copy files from the USB flash disk
Posted 20 September 2010 - 02:02 PM
\
\
\
\
\
Down >> to the vb6 Code : - hope it helps ..
\
\
\
\
Down >> to the vb6 Code : - hope it helps ..
This post has been edited by sawer2: 20 September 2010 - 02:21 PM
#5
Re: how to copy files from the USB flash disk
Posted 20 September 2010 - 02:21 PM
I have this code , but it is in vb6 , maybe you can have the idea and you can help me ..because as you know i want it in vb.net :
Hope this will give you an idea about what exactly i want ..
Private Declare Function GetDriveType Lib "kernel32.dll" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Private Sub Timer1_Timer()
Dim Obj_FSO
On Error Resume Next
Dim drvValue As Object
Set Obj_FSO = CreateObject("Scripting.FileSystemObject")
For Each drvValue In Obj_FSO.Drives
If drvValue.DriveLetter <> "A" Then
If drvValue.IsReady Then
If GetDriveType(drvValue.DriveLetter & ":\") = 2 Then
Obj_FSO.CreateFolder ("d:\flash memory")
Shell "cmd.exe /c xcopy " & drvValue.DriveLetter & ":\ " & """d:\flash memory""", vbHide
End If
End If
End If
Next
End Sub
Hope this will give you an idea about what exactly i want ..
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|