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


cowboyro

join:2000-10-11
Shelton, CT
·AT&T U-Verse
·Comcast
·Optimum Voice

reply to R2
Re: Autorun.inf programing



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

2 edits
Thanks. I'll give that a try!
_________________

Let me make sure I got that - is "folder\subfolder" correct? I just want to copy the entire contents of the flash drive.


R2
R Not
Premium,MVM
join:2000-09-18
Long Beach, CA
clubs:
reply to cowboyro
I get this as the result:

F:\>xcopy "F: \" "c:\temp " /I /S
Invalid path
0 File(s) copied


cowboyro

join:2000-10-11
Shelton, CT
·AT&T U-Verse
·Comcast
·Optimum Voice

reply to R2
said by R2 See Profile :

Thanks. I'll give that a try!
_________________

Let me make sure I got that - is "folder\subfolder" correct? I just want to copy the entire contents of the flash drive.
Then use xcopy "%curdrive%\" "c:\temp" /i /s
does your C:\temp path exist???


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


2 edits
No, and I don't really want that to be the path -- I was using that as a test folder.

Shouldn't xcopy create the folder if it doesn't exist? It did with my first trial.
_________________

Hmmm... it does not work like this:

xcopy "%curdrive%\" c:\temp /i /s

But it does seem to work like this:

xcopy *.* "c:\temp" /i /s

It does not appear that I need to figure out the current drive??
______________________

Ahhh.... I think the problem is the backslash! It DOES work like this:

xcopy "%curdrive%" c:\temp /i /s

... But I think I need to add the "/y" to avoid it asking about over-writing.


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

OK, I have the 'script' part working well - using the 8.3 naming system I can have the entire contents of the flash drive copied to exactly where I want.

Now the next problem...

Flash Drives do not work like CD's. That is, they do not "autorun" normally. So, when the drive is inserted, instead of "autorunning", the Autoplay dialog box pops up instead.

Now, I can use the "ACTION" line in the autorun.inf file, but that only allows me to make the "copy" command the first item in the list (see image above) -- it does not cause it to "AutoRun".

How do I tell Windows to "AutoRun" a flash drive?? Is this possible? Thanks

Jigglyware
Gelatin based computing

join:2006-01-09
Kenosha, WI
·AT&T Yahoo

Not that I'm accusing you of anything per se, but the kind of behavior you wish to implement is very virus like, and was the reason the autoplay dialog was implemented. I sure know that I'd be very suspicious if a flash drive tried to execute something without my consent.


R2
R Not
Premium,MVM
join:2000-09-18
Long Beach, CA
clubs:
I understand, but that is *exactly* what CD drives can do... If you are concerned about that, you should disable AutoRun for CD drives.

Jigglyware
Gelatin based computing

join:2006-01-09
Kenosha, WI
·AT&T Yahoo

Oh, of course. But the problem is that CD(and DVD)-ROMS are typically read-only, and can't get rewritten my a virus. However, removable drive are usually writable, and can be infected by an autorun.inf virus. Because of that, Microsoft changed the autorun handler behavior for removable drives and cause it to bring up the dialog you posted. You can change it(I forget how exactly) but it involves messing around in the OS. Not exactly convenient.


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

Correct, but if we look at it from a paranoid perspective, you realize CD-R and DVD-R discs are just as dangerous as removable drives, and if the disc is not labelled -- or labelled erroneously (maliciously or not) -- the risk is the exactly same. As best I know you cannot look at a physical disc and know if it is CD-R or ROM - you have to trust the label. So perhaps you should not feel so comfortable about putting *any* disc in your computer - unless you made it yourself.

Mess around the OS is exactly what I would like to do.


PapaDos
Cum Grano Salis
Premium,MVM
join:2001-02-08
Lasalle, QC

2 edits
DELETED
Oups ! I misread your intent.

--
Festina Lente
-
Forums » Tech and Talk » OS and Software » Webmasters and Developersimprovised mailing list »
« Best forum software  


Wednesday, 02-Dec 05:20:23 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [151] Comcast Releasing Promised Usage Meter
· [69] Baltimore To Ban Lazy Cable Installs
· [56] Broadband Killed The Game Console
· [55] Latest Consumer Reports Survey Not Kind To AT&T
· [52] Rogers Unveils The ISP Dream Model
· [41] Rural Carriers Quickly Embracing Fiber
· [41] ACTA: Global Three Strikes
· [35] Charter Exits Chapter 11
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [26] Vivendi Agrees, Comcast/NBC Deal Soon
Most people now reading
· [Newsgroups] Newzleech down? [Filesharing Software]
· Windows 7 boot manager editing questions [Microsoft Help]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· [Newsgroups] Newzleech is either down or gone for good... [Filesharing Software]
· [Config] cisco asa 5505 with multiple outside IP addresses [Cisco]
· Heating - my dad gave me this advice... [Home Repair & Improvement]
· Security Software Updates - 1 Dec 2009 [Security]
· Are GPS's better today? [General Questions]
· Opening a file download dialog from a JavaScript function. [Webmasters and Developers]
· Shadowmourne - the Legendary 2 Hander [World of Warcraft]