Would it be possible to supply a "callback"/"listener" file for PortableApps to run after the USB (or w/e) is done loading? (Sorry, DHTML is my best illustration. =P)
I tend to keep versions of files in all the computers I'm working on so some version (even if it's outdated) is always available to me. I'd like to prompt the user (myself) for which action to take: copy the USB version to the desktop location; copy the desktop version to the USB location; or leave it alone - then take the specified action.
I discovered that autorun.inf is the "onload attribute" of the stick, but now I wonder about the specifics (capabilities, limitations, keywords, etc.) for whatever language it's written in. (I can't find a full tutorial.) Does anyone know?
(I can't find a full tutorial.) Does anyone know?
Here some more info: http://en.wikipedia.org/wiki/Autorun
Yeah, autorun's the way to do it. You won't be satisfied though. Unlike CDs, there is no way to automatically run a command as soon as the drive is loaded. No matter which way you skin this cat, there's always an intermediate step.
Here's my autorun.inf
That second enter button that's annoyingly close to the mouse pad comes in handy here. But your file called my attention to Macrosoft's lack of information on their feature regarding 'label' and 'action'.
Thanks titto, but that seems to be one of the more neglected Wiki articles (and I'm trying to correct that on the nearly empty talk page). This was more of what I was looking for, even though it ignores flash drives (and, contrary to what you'd expect of a company more than an encyclopedia, is incomplete): http://support.microsoft.com/kb/818804 But I'm a bit confused by the distinction between 'defaulticon' and 'icon'... *begs* A twopence of knowledge, sir? Madam?
Maybe this is more to your liking: http://msdn2.microsoft.com/en-us/library/bb776823.aspx
A link on the wiki page tittoproject posted.
I've never heard of "defaulticon" but since it is referenced on a Microsoft Visual Studio .NET page I would suspect it has something to do with .NET, which not everyone uses.
Ed
Okay, thanks Ed. That page looks like the one most directly intended (and most tended) for my situation.
With a lot of Microsoft stuff you have to do an iterative process, like: try it, fail, lose patience, read their instructions, see a minor change, try it, fail differently, go back, read instructions again, see something different, try it but get closer. Eventually the instructions start to seem less opaque, or your research has brought you to the article that documents the difference between the way it works on NT4 versus Vista.
I'd guess that "default icon of the application" is what icon Explorer should use for a cmd or exe file referenced in "open" that doesn't have its own icon or possibly to override it, while "icon for the CD-ROM drive" might be the icon used by explorer for the drive in My Computer. Trial and error might prove that out. It would be better if they tried harder to disambiguate their chosen words.
What would be nice is an autorun that would let one choose what would automatically run, like a process that would ignore an autorun.inf that wanted to run "MyNastyTrojan.exe" but would without complaint or prompt run any program in autorun.inf that has been code-signed by John.
You can of course come up with a variety of ways to automate the autorun on your own machine with a variety of tests before running or not running something; but it would be unlikely you could get it running on every locked down workstation you wanted to use.
MC