[VB6] Copy files through USB

Closed
mohamed49590 Posts 3 Registration date Sunday 19 January 2014 Status Member Last seen 20 January 2014 - 19 Jan 2014 à 12:51
 Blocked Profile - 29 Jan 2014 à 12:52
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
29 Jan 2014 à 12:08
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.
Blocked Profile
29 Jan 2014 à 12:52
I agree with Gravgun, I am not fond of the use of the word SPREAD!