1.

Solve : autorun file?

Answer»

how would i write an autorun program that would run when i plugged in my flash drive?I think the closest thing to what you WANT is AUTORUN.INF, but I don't think AUTORUN.INF will work on flash drives.

U3 drives accomplish this by creating a CDFS partition on flash drives and launching an AUTORUN.INF file on the CDFS partition. So start by looking at autorun and U3. Post back if you have more questions.I have an autorun on my usb drive.
Code: [Select][autorun]
icon=myicon.ico
Put the Autorun.inf in the root of your drive with the icon and it gives the flash drive an icon. You have to unplug it and then replug it and you will have a personal icon.Quote from: goodnatureddog on May 11, 2007, 03:53:28 PM

how would i write an autorun program that would run when i plugged in my flash drive?

What exactly do you want it to do? You gotta help us out here if you want definite answers.

And autorun.inf, by the way, will work on a flash drive.I'm trying to write an autorun file for portable apps, i get sick of have to tell it what to do every time i plug it in. also i want to write one for a cd that i have some homemade games on, i want to start the menu from the cd when the cd is put in, i have that covered with a batch file. so in a nut shell, i nned something to autorun portableapps and a batch file from a cdYou are still not being specific for a PROBLEM that requires specifics...in other words i don't think you can write a batch file for your flash drive that says run all my stuff right now....
See the issue ? ?Check out this LINK from Microsoft:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.aspI'm not saying i want it to be a batch file, i want it to run a batch file from my flash drive


Discussion

No Comment Found