PLEASE NOTE: THIS POST IS NOT ABOUT ROMS OR PIRACY. PLEASE DO NOT ASK ME, OR MAKE REQUESTS IN THIS THREAD FOR ROMS OR WHERE TO FIND THEM.
I've come up with a very low-ball approach to executing batch files from PAM using a ResHacked stand alone Flash Playe(Projector).
I've had great success moving flash games and even Warcraft III on to my thumbdrive using this technique, most recently Nestopia.
Enough already, where's the darn download link already?
From the Readme File:
How to Install
Copy the folder: Nestopia137bin
PortableApps Folder on your Thumbdrive/Storage Device
Example of correct install path to Nestopia.exe:
How to Make Changes
If you need to make changes to the Batch file for specific settings you may require, you can find "portable.reg" inside Nestopia137bin\fscommand\.
You can save all your preferences normally in-game, including Save States, they will be retained. Nestopia updates it's config file on exit, all that's changed is the drive letter for the install paths before launching.
How Does this Work?
A Batch file (portable.bat) is launched from a Stand Alone Flash Player which closes itself after executing the portable.bat. Flash can only execute external files if they are contained in a folder named "fscommand", therefore Nestopia and all of it's files have been migrated to this folder for this reason, and to avoid Nestopia's EXE file from showing up in the Portable Apps Menu.
The Flash Player has had it's icons and name changed to reflect the application it's launching. The Batch file determines your Storage Device's Drive letter, and adds the changes to Nestopia.cfg before finally launching Nestopia and closing the Dos box.
PS - Did I mention I'm not a programmer? I'm sure there's 101 ways to do this leaner, meaner and cleaner, but hey, this works, and I didn't have to bug you asking how to do it.