You are here

Programmatically closing the PortableApps.com Platform

5 posts / 0 new
Last post
PortableGood
Offline
Last seen: 5 months 3 weeks ago
Joined: 2014-10-06 11:51
Programmatically closing the PortableApps.com Platform

Is there currently a way to programmatically close the PortableApps.com Platform, such as from a batch file?

I tried:

PortableAppsPlatform.exe /?

to see if it would list command line options, but none were presented.

If it's not currently possible, could this functionality please be added? Supporting something like the following will be ideal:

PortableAppsPlatform.exe /quit

TIA.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 53 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Currently

There is no such option at present. Is there something specific you'd like to close the platform from integration-wise?

Sometimes, the impossible can become possible, if you're awesome!

PortableGood
Offline
Last seen: 5 months 3 weeks ago
Joined: 2014-10-06 11:51
Yes

Thanks John. Sorry for the delay in response.

I've run into the need (well, desire) in several situations, all related to automation:

1. The first is when performing certain types of system backups. Backups work best when files are not open/locked, so I have a script that closes everything before performing certain types of backup. Being able to safely close the PortableApps.com Platform will be nice.
2. The second is system cleaners. I run some system cleaners before shutdown, and they need all applications (including the PortableApps.com Platform) to be closed so they can safely perform their operations. I wrote a script to do this, but it uses a hack to force terminate the PortableApps.com Platform, which isn't ideal.
3. The third is memory consumption. I run a background tool that closes applications (using a priority list) as memory fills. Although the PortableApps.com Platform doesn't occupy much memory, when memory is low, every byte counts. It will be nice to allow that tool to cleanly, efficiently, and safely close the PortableApps.com Platform.

Although their are ways to force terminate applications, it's always better to let applications use their native mechanism to close themselves. Also, this ensures everything works correctly, regardless of the version of Windows (or Windows emulator) being used.

TIA.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 53 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Windows Message for Updates

There's a windows message you can send that's only for updates. You can find that in the Delphi source. It's only intended for updates, though, and causes the platform to close in a non-standard way, so I won't publicize it here. It may also change in the future. But it will save its settings for now, so you won't have to force terminate.

I added the request to the PortableApps.com Platform Bug Report and Feature Tracker.

Sometimes, the impossible can become possible, if you're awesome!

PortableGood
Offline
Last seen: 5 months 3 weeks ago
Joined: 2014-10-06 11:51
Thanks John

Thanks for adding the request to the tracker. I appreciate it.

Log in or register to post comments