Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


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


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


1 edit
reply to R2
Re: Autorun.inf programing

FYI - the answer to this appears to be:

Format part of the Flash drive in "CDFS" (CD file system). This makes the OS believe the drive is a CD. This allows it to use "AutoRun".
______

Add: the only way I could find to do this is to use Linux and mkisofs.exe. It seems you need to make an .iso of the files you want on the CD partition and then get that on to the Flash drive.


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

2 edits
reply to R2
DELETED
Oups ! I misread your intent.

--
Festina Lente


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

reply to Jigglyware
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.

Jigglyware
Gelatin based computing

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

reply to R2
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:
reply to Jigglyware
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

reply to R2
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:

reply to R2
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


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


2 edits
reply to cowboyro
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.


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:
reply to cowboyro
I get this as the result:

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


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

2 edits
reply to cowboyro
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.


cowboyro

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

reply to R2


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


3 edits
reply to jayco437
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?


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

reply to R2
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:


4 edits
reply to GILXA1226
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.


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

reply to R2
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:

  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.
Forums » Tech and Talk » OS and Software » Webmasters and Developersimprovised mailing list »
« Best forum software  


Thursday, 03-Dec 13:54:37 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
· [162] Comcast Releasing Promised Usage Meter
· [127] Avast Antivirus Has Gone Mad
· [103] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [80] Latest Consumer Reports Survey Not Kind To AT&T
· [71] Comcast Makes NBC Universal Acquisition Official
· [70] Baltimore To Ban Lazy Cable Installs
· [63] Broadband Killed The Game Console
· [55] Rogers Unveils The ISP Dream Model
· [47] ACTA: Global Three Strikes
· [43] Cable Industry's 'Adoption Plus': Altruism Or PR Stunt?
Most people now reading
· False positive in Avast! or is it real? [Security]
· [Rant] Disrespect of PTO [Rants, Raves, and Praise]
· Warrior tank seem underpowered these days [World of Warcraft]
· [TWC] Audio/Video outage in Brooklyn [Time Warner Cable TV/Voice]
· Linux is terrorist - according to MS... [All Things Unix]
· Many Sites Unreachable [Rogers]
· Microsoft actively urges IE 6 users to upgrade [Security]
· Equal speeds ruling [Canadian Broadband]
· Is Gear Score now the new requirement to get pug invite? [World of Warcraft]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]