Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 941
  • Last Modified:

Auto copy from disk

I have a .vbs script that executes a batch file silently to copy files from a usb disk to my hard drive.  Is it possible to run this process automatically when usb disk is inserted without an autorun.inf on the disk itself and without any user prompts.  How can I also tel my batch file what the drive letter of the inserted disk is?
0
Psyco_Sid
Asked:
Psyco_Sid
  • 3
1 Solution
 
Bill PrewCommented:
If I understand you correctly, and you are looking for a way to have something running on the PC that takes action each time a USB is inserted, then here's a link to a sample.  It's NOT easy code, but the key technique is included.

http://www.akaplan.com/blog/?p=415

~bp
0
 
Bill PrewCommented:
(take the USBMonitor.vbs link from that page above...)

~bp
0
 
Psyco_SidAuthor Commented:
I tested the script as is on my windows 7 PC and it works like the original writer intended.  I just had to take out the e-mail part as the code does not handle authentication.  I'll see about adapting the code to my needs on Monday.  Looks like problem solved!! Thanks
0
 
Bill PrewCommented:
Cool, hope that works out for you.

~bp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now