Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Autorun.inf programing
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
improvised mailing list »
« Best forum software  
AuthorAll Replies


GILXA1226
Premium,MVM
join:2000-12-29
London, OH
clubs:

reply to R2
Re: Autorun.inf programing

said by R2 See Profile :

I want to write a program/script that copies that contents of a Flash Drive to a specific folder on the hard drive as soon as the Flash drive is inserted.

I have the tools to create the autorun.inf file, but I need to make sure that the file designed to run on insertion copies the contents like I want.

For example, can I use CMD file to do this? If so, how do I have it figure out the drive letter of the Flash drive?

Any thoughts are appreciated. Thanks.
My first thought would be to find a CD that had an autorun.inf file on it and use that as a base.


R2
R Not
Premium,MVM
join:2000-09-18
Long Beach, CA
clubs:


4 edits
I can write the autorun file and I can tell it WHAT to run -- I just need to make sure that the file I tell it to run will actually COPY the flash drives contents to a folder on the hard drive. I don't think many CD's do that...

Something as simple as:
BUT... that will fail because the Flash drive will NOT always be the D: drive. I need to be able to say "copy THIS drive to a folder on the C: drive."

I want this to work on multiple computers.


jayco437
Premium
join:2001-08-11
Lincoln, NE
·Windstream

Have looked at something like this:

»autorun.moonvalley.com/relative_···aths.htm

Put everything in a folder on the stick, and try using a relative path, such as .\MyUSBFolder\


R2
R Not
Premium,MVM
join:2000-09-18
Long Beach, CA
clubs:


3 edits
That looks very promising - thanks. I believe I can use wildcards (*) also. I will give it a try. Thanks.
_________

And do I want xcopy? I'll check it out.
_______________

Forgive my ignorance. I tried this - and it works - sort of:
But I get hit with this:
How do avoid that message? ANSWER - add a backslash at the end!!

And it looks like I need to use short file names, correct?
-
Forums » Tech and Talk » OS and Software » Webmasters and Developersimprovised mailing list »
« Best forum software  


Thursday, 10-Dec 10:11:27 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [200] Sprint Sued For Distracted Driving Death
· [124] AT&T Launching New 24 Mbps U-Verse Tier
· [82] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [70] AT&T Hints At Usage-Based iPhone Data Pricing
· [66] Sprint Poised For A Turnaround?
· [66] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [51] The Future Of Wi-Fi Is Bright
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
· [45] Microwaving Your Innards Is Not 'Extreme'
Most people now reading
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Cross Server Dungeon Experience [World of Warcraft]
· Battered Hilt Delimma [World of Warcraft]
· Snow on Roof [Home Repair & Improvement]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· CRTC hearing on Monday [TekSavvy]
· Facebook Asks Users To Personalize Their Privacy [Security]
· Icecrown 5-man strats [World of Warcraft]
· Forwarding previous owner's mail [Home Repair & Improvement]
· Windows 7 boot manager editing questions [Microsoft Help]