6 Replies - 142 Views - Last Post: 08 February 2012 - 01:05 AM Rate Topic: -----

Topic Sponsor:

#1 Bluezap  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 85
  • Joined: 19-January 12

Pen Drive Intergration

Posted 07 February 2012 - 10:05 PM

Is there anyway to start a program when a USB pen drive which contains a specific file is plugged into the computer?
I've been doing a lot of research on this but i haven't been able to figure it out.
Basically i want my program to start running when a USB pen drive containing a specific secret file is plugged onto the computer.
Anyone knows how to accomplish this?
Any similar projects i can take a look at?
Is This A Good Question/Topic? 0
  • +

Replies To: Pen Drive Intergration

#2 DimitriV  Icon User is offline

  • It's been so long, without this feeling
  • member icon

Reputation: 513
  • View blog
  • Posts: 2,533
  • Joined: 24-July 11

Re: Pen Drive Intergration

Posted 07 February 2012 - 10:38 PM

What do you mean… is the program on the pendrive? If so you can create an autorun.inf file on the top directory:
[autorun]
open=<filetoopen>


If it isn't… let me know :)
Was This Post Helpful? 0
  • +
  • -

#3 Bluezap  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 85
  • Joined: 19-January 12

Re: Pen Drive Intergration

Posted 07 February 2012 - 10:47 PM

View PostjimmyBo, on 07 February 2012 - 10:38 PM, said:

What do you mean… is the program on the pendrive? If so you can create an autorun.inf file on the top directory:
[autorun]
open=<filetoopen>


If it isn't… let me know :)


Not exactly, There should be a txt file on the pen drive containing a string for example 100-000-000
The program i created is installed on the computer
When the pen drive with the txt file (with the string) is plugged into the computer,i want the program on the desktop to automatically run without the user having to click autorun or anything.
Is there a way i can create my program so that it will scan all the pen drives connected to the computer and see whether any of those pen drives have that txt file in them,If so run automatically?
I dont know how to accomplish this, is there a project i can look at?
I am writing this program in Visual Basic 2010.
Was This Post Helpful? 0
  • +
  • -

#4 _HAWK_  Icon User is online

  • Master(Of Foo)
  • member icon

Reputation: 757
  • View blog
  • Posts: 2,822
  • Joined: 02-July 08

Re: Pen Drive Intergration

Posted 07 February 2012 - 11:05 PM

There is the DriveInfo class.
Was This Post Helpful? 0
  • +
  • -

#5 Bluezap  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 85
  • Joined: 19-January 12

Re: Pen Drive Intergration

Posted 07 February 2012 - 11:52 PM

View Post_HAWK_, on 07 February 2012 - 11:05 PM, said:

There is the DriveInfo class.


Could you just tell me how i can make my program detect if a drive is plugged into the computer.
I can figure out the rest.
Was This Post Helpful? 0
  • +
  • -

#6 Utael  Icon User is online

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 57
  • Joined: 12-December 11

Re: Pen Drive Intergration

Posted 08 February 2012 - 12:44 AM

Can you just give me 100 dollars? Without working expect no reward.

Sent from my ADR6300 using Tapatalk
Was This Post Helpful? 0
  • +
  • -

#7 Bluezap  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 85
  • Joined: 19-January 12

Re: Pen Drive Intergration

Posted 08 February 2012 - 01:05 AM

View PostUtael, on 08 February 2012 - 12:44 AM, said:

Can you just give me 100 dollars? Without working expect no reward.

Sent from my ADR6300 using Tapatalk


haha i didnt mean it like that.Im just trying to figure this out but i have no luck in doing so.But i understand what you mean....Go to do more research i guess lol.....
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1