Solved

Auto copy from disk

Posted on 2010-11-19
4
929 Views
Last Modified: 2012-05-10
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
Comment
Question by:Psyco_Sid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 56

Expert Comment

by:Bill Prew
ID: 34176041
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
 
LVL 56

Accepted Solution

by:
Bill Prew earned 125 total points
ID: 34176046
(take the USBMonitor.vbs link from that page above...)

~bp
0
 

Author Closing Comment

by:Psyco_Sid
ID: 34176930
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
 
LVL 56

Expert Comment

by:Bill Prew
ID: 34179768
Cool, hope that works out for you.

~bp
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question