USB(flash drive) to COMPUTER

Reply

Join Date: Dec 2007
Posts: 252
Reputation: technogeek_42 has a little shameless behaviour in the past 
Solved Threads: 3
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

USB(flash drive) to COMPUTER

 
0
  #1
Jan 23rd, 2008
what code should i do to autorun a program to my computer using my USB? or just a program that will execute a start up and save it to the computer?VB6
╞═══════╣SPYnX███
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: USB(flash drive) to COMPUTER

 
0
  #2
Jan 23rd, 2008
u mean the program can be run when your usb connect to computer?
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 62
Reputation: Mbt925 is an unknown quantity at this point 
Solved Threads: 5
Mbt925's Avatar
Mbt925 Mbt925 is offline Offline
Junior Poster in Training

Re: USB(flash drive) to COMPUTER

 
0
  #3
Jan 23rd, 2008
or you mean run from usb?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 39
Reputation: Jade_me is an unknown quantity at this point 
Solved Threads: 1
Jade_me's Avatar
Jade_me Jade_me is offline Offline
Light Poster

Re: USB(flash drive) to COMPUTER

 
0
  #4
Jan 26th, 2008
i guest connect the usb and run from usb.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 102
Reputation: SCBWV is an unknown quantity at this point 
Solved Threads: 14
SCBWV SCBWV is offline Offline
Junior Poster

Re: USB(flash drive) to COMPUTER

 
0
  #5
Jan 26th, 2008
Been my experience that USB won't use an AutoRun.Inf file like a CD will.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: USB(flash drive) to COMPUTER

 
0
  #6
Jan 27th, 2008
specify more friend..
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 140
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: USB(flash drive) to COMPUTER

 
0
  #7
Jan 28th, 2008
I've just done some testing on the laptop (running Vista) and have found that an autorun.inf kind of works in that it pops up the "AutoPlay" dialog (which usually gives you options to choose from - whether to load music into WMP, pictures into the picture viewer or just to go to explorer and view the contents) except after lumping in an autorun.inf (I'll enter this file's contents below), I only have 2 options... one to open the exe referenced in the autorun.inf and the other to go to windows explorer and view the drive contents.

[autorun]
icon=icon.ico
open=apps\test_app.exe
for info, I have a folder named "apps" on my usb flash key with test_app.exe inside of it but you'd just need to change the items to your own settings.

I have had problems getting it to work on an old PC of mine at home, so I suppose its a case of trial and error...
Last edited by jonifen; Jan 28th, 2008 at 7:59 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: technogeek_42 has a little shameless behaviour in the past 
Solved Threads: 3
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Re: USB(flash drive) to COMPUTER

 
0
  #8
Jan 30th, 2008
what is test_app.exe>?

it's like a virus behavior that will the usb from computer and autorun the file i want and save to computer and run
╞═══════╣SPYnX███
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: USB(flash drive) to COMPUTER

 
0
  #9
Jan 30th, 2008
what is test_app.exe>?
its your exe name...
if you want the program copied their self to new pc, you must added function to copy their self in your program...
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 140
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: USB(flash drive) to COMPUTER

 
0
  #10
Jan 30th, 2008
Originally Posted by technogeek_42 View Post
what is test_app.exe>?

it's like a virus behavior that will the usb from computer and autorun the file i want and save to computer and run
test_app.exe is the app I used to demonstrate the autorun.inf working.

As Jx_Man said, you could add the functionality to your application which will make it copy itself to the computer. Alternatively, you could possibly call a batch file or a small VB project which copies a file from the USB key onto the computer using FSO and then run it that way...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC