+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
Coding Thread, USB Device Prompter in Coding and Web Development; Hi all, I was getting a bit fed up with teachers and students forgetting to remove their usb devices, so ...
  1. #1
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,474
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109

    Talking USB Device Prompter

    Hi all,

    I was getting a bit fed up with teachers and students forgetting to remove their usb devices, so I've written a program that will warn them when the log off that they have USB Devices still connected, and provide a means of ejecting them individually. It even changes color for 10 seconds at the beginning just to get the users attention

    Attachment 9342

    The program should run as a normal user, even a restricted one as the script is running from program files (tested on RM CC3)

    The program can be downloaded from http://www.nbdev.co.uk/media/p/4123.aspx. You'll need .net 4 cp to run it.

    Install via Group Policy, and add a log out script pointing to c:\program files (x86)\Crickhowell High School\CHS USB Alert\USBAlert.exe.
    Parameters can be /nosound /timeout xx
    Last edited by nickbro; 2nd February 2011 at 09:35 PM.

  2. 9 Thanks to nickbro:

    andyturpie (19th September 2012), Arthur (1st March 2011), fawkers (3rd February 2011), FN-GM (21st March 2011), glennda (2nd February 2011), LosOjos (21st March 2011), mac_shinobi (1st March 2011), rh91uk (2nd February 2011), somabc (21st March 2011)

  3. #2

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    Would be interested in this, I will drop you a PM with my details.

  4. #3
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    642
    Thank Post
    118
    Thanked 89 Times in 73 Posts
    Rep Power
    78
    Hi Nick,


    Looks like another fantastic app by yourself. Will it work on vanilla setups?

    Thanks,

    Michael

  5. #4

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,786
    Thank Post
    272
    Thanked 1,130 Times in 1,026 Posts
    Rep Power
    348
    Quote Originally Posted by linkazoid View Post
    Hi Nick,


    Looks like another fantastic app by yourself. Will it work on vanilla setups?

    Thanks,

    Michael

    Same as this - would be really good if it did.

    Toby

  6. #5
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,474
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Yep, it's just a .net 4 WPF application.

  7. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,474
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Note: Download Link Added USB Alert - nb development

  8. #7
    rh91uk's Avatar
    Join Date
    Sep 2008
    Location
    UK
    Posts
    871
    Thank Post
    137
    Thanked 132 Times in 114 Posts
    Rep Power
    35
    Thank you so much! A teacher actually emailed me asking if this was possible. Going to deploy this tommorow - thanks again!

  9. #8

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,273
    Thank Post
    614
    Thanked 1,567 Times in 1,407 Posts
    Rep Power
    412
    Is it possible to auto eject the device when they logoff and display your warning?

    Ben

  10. #9
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,474
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Unfortunately not. When I had v1 it was but v1 would only run as an admin. I changed the code to use the Windows Device Eject dialogue instead of a custom one to allow it to work as a standard user

  11. #10


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,710
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Quote Originally Posted by plexer View Post
    Is it possible to auto eject the device when they logoff and display your warning?
    I haven't tried it myself yet, but I think you could use the OnUserLogoff event in USBDLM to run USB Device Prompter (or RemoveDrive).

  12. #11

    Join Date
    Mar 2011
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi there, nice

  13. #12

    Join Date
    Mar 2011
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi there, nice but a simple copy of usbalert on USB Alert - Introduction - Don't forget your USB stick or the download page

    A con of nb's tool is the .net framework. You let the users install the .net framework.
    USB alert on USB Alert - Introduction - Don't forget your USB stick is not depending on the .net framework en talks directly to the windows API's.

    So, therefore you can put the small tool on your usb stick and activate it by autorun. Just look at

    http://windows7migration.info
    or
    4sysops.com

    Good luck!!!

  14. #13

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,432
    Thank Post
    1,432
    Thanked 1,160 Times in 794 Posts
    Rep Power
    705
    Quote Originally Posted by Rick-y View Post
    Hi there, nice but a simple copy of usbalert on USB Alert - Introduction - Don't forget your USB stick or the download page

    A con of nb's tool is the .net framework. You let the users install the .net framework.
    USB alert on USB Alert - Introduction - Don't forget your USB stick is not depending on the .net framework en talks directly to the windows API's.

    So, therefore you can put the small tool on your usb stick and activate it by autorun. Just look at

    http://windows7migration.info
    or
    4sysops.com

    Good luck!!!
    nickbro's program looks much more user friendly, and most machines will have the .net framework installed as a matter of course. Add to that he's a respected member of the community and not a one time poster, and I think I'll stick with nickbro's program, thankyouverymuch

  15. #14
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    Very nice, although it would be helpful not to install it in Crickhowell High School in Program Files!

    Good Work!

  16. #15

    Join Date
    Mar 2011
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    aha friend-politics :-)
    I'm up to 3 posts...!

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. usb key not recognised n mulfunctioned
    By lionsl2005 in forum How do you do....it?
    Replies: 9
    Last Post: 27th January 2009, 09:22 AM
  2. games on USB key
    By bigtime5001 in forum How do you do....it?
    Replies: 18
    Last Post: 21st December 2008, 06:05 PM
  3. [News] Sawed off USB Key
    By Geoff in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 22nd April 2008, 12:13 PM
  4. Password Protect USB Key
    By sqdge in forum Windows
    Replies: 2
    Last Post: 31st July 2007, 03:47 PM
  5. Stop kids running programs from their USB key
    By timbo343 in forum Windows
    Replies: 8
    Last Post: 28th September 2006, 02:12 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •