Solved

Auto copy from disk

Posted on 2010-11-19
4
923 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
  • 3
4 Comments
 
LVL 52

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 52

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 52

Expert Comment

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

~bp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to Modify a Script I found 5 92
Modifying Powershell script to change service startup mode ? 9 46
how to  skip files that were already there? 3 39
batch script 3 24
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now