[VB6] Copy files through USB

Closed
mohamed49590 Posts 3 Registration date Sunday January 19, 2014 Status Member Last seen January 20, 2014 - Jan 19, 2014 at 12:51 PM
 Blocked Profile - Jan 29, 2014 at 12:52 PM
hi
I break my head to make a programme that can spread an exe file to USB in vb6 , and I d'ont succed ,can any one can help me for do this programme ?.
thanks
Related:

2 responses

Anonymous User
Jan 29, 2014 at 12:08 PM
Hi, what's the goal of such beahviour?
Copying files to an USB thumb drive can be done in any file manager; and doing the same in your software can have a point (e.g. data backups), but the way you say "spread an exe file to USB" makes it so you seem to want to infect the thumb drive, like a virus.
And why not ask how to make the
autorun.inf
file BTW?

Anyways if you want to copy a file:
FileSystemObject.CopyFile "c:\sourceFile.txt", "d:\destFolder\destFile.txt"

As for USB drive detection, Microsoft provides a documentation article about it.
0
Blocked Profile
Jan 29, 2014 at 12:52 PM
I agree with Gravgun, I am not fond of the use of the word SPREAD!
0