Hi, I found a way to make firefox portable virtually lagless. I'm not sure if this has been already suggested, but you can just make a batch file to copy it to a temporary directory, and then run it on the hard drive. Then, when you're done, you can copy to back to your USB drive.
Here is one I made:
@ECHO OFF
ECHO Creating temporary directory for firefox potable
PAUSE
MKDIR %temp%\FFXP
ECHO Copying firefox to temp directory
PAUSE
XCOPY /E /Q FirefoxPortable %temp%\FFXP
ECHO Starting firefox
PAUSE
%temp%\FFXP\FirefoxPortable.exe
ECHO Saving changes to USB device
PAUSE
XCOPY /E /Q %temp%\FFXP FirefoxPortable
ECHO Removing temporary data
PAUSE
RMDIR /Q /S %temp%\FFXP
ECHO Done
PAUSE
Already built into launcher...
This feature is already built into the FirefoxPortable.exe launcher.
That's weird because I get much better performance using my batch file.
that is definitely NOT built into the launcher, because it basically goes completely against portability as defined on this site.
In the event of the computer crashing, you can guarantee that 100% of your personal data will be left behind on the computer's temp directory - that is all your bookmarks, all your passwords, everything.
If you don't have a problem with that, then yes, the batch file will make FFP much more responsive.
it is, it is called RunLocally and is available from the INI file as far as I remember
And it's for Live CDs. And there's a note about it copying stuff locally. It just doesn't have an option to copy Data back as we don't want to encourage people to do the above as you'd be leaving your data behind in ways that others could find it on every PC unless you incorporate eraser into the mix.
Sometimes, the impossible can become possible, if you're awesome!
That's pretty much what I need to make Deus Ex (an Unreal-based RPG with a FPS engine) run better portably from a flash drive, because quicksave and quickload take forever.
What do the commandline switches do (/E and /Q for xcopy and /Q and /S for rmdir)?
I might have to adapt this batch file to effectively copy the save folder from the flash drive to the temp folder, run the game, and then copy the folder back when it's done.
Another solution is to get a faster flash drive or a USB hard drive. Because that's all we're really talking about is flash drives that are slower than hard drives. My Portable Firefox doesn't need anything like this, but the game's another story.
His batch file is very primitive.
Take a look at xcopy /? and rd /? and you'll see a list of command line switches.
-
But how will you make the game look at save on PC instead of its folder?
How is my batch file primitive?
Also, if the computer you're on DOES crash, you can just go back into %temp% and delete FFXP. And, if you are concerned about your security, you can get rid of "RMDIR /Q /S %temp%\FFXP" and use the erase command. For the switches, do "erase /?".
a lot of unnecessary pause
doesn't make use of >nul (to hide ugly msgs on the screen)
doesn't make use of double quotes "" with %temp% (remember that it may contain spaces)
doesn't attrib a destination path to XCOPY (it means that the files from %temp% will be copied to current directory and not to the directory that .cmd is)
etc...
i didn't mean that you don't know what you are doing or something like this.
i meant that your script is a bit "simple".
[]'s
I just added the pauses because I like them. I don't write batch files much, so it was a little weird
tip: if you want a little pause between commands, try to use
ping 127.0.0.1>nul