Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 939
  • 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

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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