I would like to be able to use a command line option to close/ kill the PortableAppsPlatform.exe automatically.
I found through a search that PortableAppsPlatform.exe uses a third party eject tool "PortableApps\PortableApps.com\App\Bin\eject.exe", but found nothing regarding the close but not eject button.
Any thoughts.
PortableAppsPlatform.exe /q /quit /exit /close .... something along those lines.
We don't plan on offering the functionality as the PA.c Platform is supposed to be used by the user, not scripted by a 3rd party utility.
Sometimes, the impossible can become possible, if you're awesome!
Thanks for the quick reply.
Since closing the PortableAppsPlatform.exe using the X doesn't close the apps opened from the drive or do a safe dismount, is there any harm in killing it?
The reason I ask is I keep my PortableApps install on a TrueCrypt volume...on the flash drive. I insert the drive, run my batch(which I have also converted to exe), enter my TrueCrypt password, and PortableApps starts automatically.
Closing is the hassle, close all apps, close PortableAppsPlatform.exe, dismount TrueCrypt volume, and eject drive. I would like to script the last 3 steps. All I really need is the easiest way to kill PortableAppsPlatform.exe, assuming its safe. Attached are the scripts I use to start and shutdown.
Startup Script
:top
if exist "z:\PortableApps\PortableApps.com\PortableAppsPlatform.exe" goto runapp
start /b TrueCrypt\truecrypt.exe /v DATA.VOL /l z /q background
goto wait
:wait
if exist "z:\PortableApps\PortableApps.com\PortableAppsPlatform.exe" goto runapp
sleep.exe 2
goto :wait
:runapp
start /b z:\PortableApps\PortableApps.com\PortableAppsPlatform.exe
quit
Shutdown Script, after manually closing apps and PortableAppsPlatform.exe
start /b TrueCrypt\truecrypt.exe /quit /dz
sleep.exe 3
start eject.exe /REMOVETHIS
Reason for the encryption?, I use KeePass(its DB is encrypted, but I am paranoid...), Thunderbird and Filezilla do not keep their usernames/passwords secret, Firefox also does not encrypt saved passwords.
Not to mention Teamviewer or any other apps I have I wouldn't want someone on the street to just get access to.
Yes, I could disable all the automatic saved passwords, but that's annoying to me when I can protect it all with a single master password on the TrueCrypt Volume. Not to mention FileZilla is useless without saved FTP sites, and Thunderbird shows the last session(current inbox contents) regardless of password or email settings.
Root of my drive has my contact info, TrueCrypt and TrueCrypt Volume, and my mount/dismount utilities.
No thoughts on this?
taskkill /F /IM PortableAppsPlatform.exe /T
/F forces,
/IM specifies the image name
/T kills all child processes.
This sucessfully kills firefox, thunderbird and a few other Portable Apps that I tested. Doesn't allow apps to save on close, so something may be lost, so for now I will still close my apps manually before executing the exit script.
Killing the tree is a really bad idea as as far as the programs are concerned it's no different from just unplugging the computer from the wall, they don't get to save any settings or stop using whatever file they may be writing to, etc. so you not only end up with junk getting left behind, but you also can easily corrupt data.
Leave off the /F and it becomes slightly less dangerous (programs will get the chance to finish writing files they might have open and they can give you a chance to save your work if you have unsaved changes in a document or something) however I don't think any of the PortableApps.com Launchers understand the command that it will send just yet, so you'll probably still have your PortableApps' stuff get left behind anyway.
For now just shut each program down manually first (like you said you do), something may be done about this in the future, IDK.
Install Autohotkey. It's a great scripting language.
Create a script with the following contents, compile it and set it to autostart with the portableapps.com menu.
Press Control+Alt+X to close the menu anytime.
#NoTrayIcon ;Hide the tray icon
#NoEnv
; Control+alt+x closes the menu
^!x::
DetectHiddenWindows, On
ControlClick, Close, ahk_class TfrmMenu
return
or you can just type the following in a script, compile it and have it called by your batch file at the time of exit (i think that's batch, not sure)
#NoTrayIcon
#NoEnv
DetectHiddenWindows, On
ControlClick, Close, ahk_class TfrmMenu
ExitApp ;exit the script
This thread got me thinking...
Not only does the TrueCrypt container keep non-Keypass items secure, but for me I was searching for a syncing solution.
If you are like me, you keep dozens of apps on a thumb drive, many which are from Linux design utilizing hundreds if not thousands of "micro" files (files sub 4k). If you are familiar with read/write speeds of EVERY storage medium (SSD, HDD, USB, SDHC, etc.) you will know what I mean.
Examples:
So for twelve (12) apps, there are 60k objects yet barely 4GB. To transfer this 4GB data from a decent USB 2.0 Drive to computer can take over ten minutes (more if writing TO the USB drive).
Yet my entire collection of portable apps being housed in a 14.5GB container can we written from PC to USB within 8 minutes.
Incidentally I upgraded from my beloved 16GB Patriot Rage XT to Sandisk 64GB Extreme (3.0) and despite feeling cheap, performance is significantly enhanced.
Also, a concept I'd like to share is how I am able to use Sardu (with GParted, Backtrack5, F4UBCD, WinXP Installer, Win7 Installer, and others) which is not compatible with NTFS, while also allowing for a TrueCrypt container over the FAT32 4.0GB limitation.
Below are my source-codes for AutoIt (Feel free to use/modify and share your results!):
PortableAppsMountStart.au3
PS: If you want to be prompted for your TrueCrypt password, exclude the /p "xxxxxx" section
PortableAppsUMountStop.au3
You may notice that I use "P" as my portableApps Drive letter - that is because MOST corporate environments tend to map X,Y,Z etc.
Thank you for reading!
-Page2PagePro