Is it possible to have programs start when the portable apps platform menu starts?
Currently i use pstart and it auto runs a few programs on start up i would like to be able to do the same
New: Gopherus (Feb 14, 2023), Platform 24.1 (Feb 13, 2023)
450+ real apps (49GB), 1 billion downloads, Please donate.
Is it possible to have programs start when the portable apps platform menu starts?
Currently i use pstart and it auto runs a few programs on start up i would like to be able to do the same
Use the current pre-release, right click on an app and select "Start Automatically".
Thank you
The only problem i have just noticed is that one of the programs is external i.e it is on the main computer and not on my USB.
Is there anyway to get this to run?
Not currently. The platform only supports apps it displays to autostart. What is it locally you are trying to run? There may be a workaround.
the program i run is syncback on start up to sync my folders and files.
https://portableapps.com/apps/utilities/command_prompt_portable
This includes a customizable batch file that you could use to start your app.
After you run it once, edit the x:\PortableApps\Commandpromptportable\Data\commandprompt.bat file.
A simple edit would be to add the following lines to the end of the batch:
START (path to your syncback program)
EXIT
The START command starts your program external to the command prompt.
The EXIT command closes the command prompt window.
Once that's set up, you can autostart CommandPrompt Portable.
True, but then you get a command prompt window flashing.
I think I'm going to add the ability for advanced users to have a BAT file run on platform start and exit so they can really customize things and add whatever they want in. I'll set it up so it has all the environment variables available to it as well as that will help quite a bit.
For now, I'm sure most users would not care if a cp window flashed for a second so long as it works.
It should be fairly easy to write a small app that you could use to run a batch file silently. By using VBS, you can call a batch file that runs without a command prompt.
Actually, this would be a great project for a budding developer to work on.
IMHO, this doesn't really need to be incorporated into the platform.
It's quite easy to implement and would require maybe 4 lines of code.
A long time ago I posted an auto-start batch file that does 3 primary things: 1) ask if I want to run anti-virus on the computer before anything else (in case in I'm in a hotel), 2) start a series of programs that I always want to run and last 3) depending on the machine name I'm on and if I can access a specific network file, run additional software (used to kick off different folder sync software tasks depending on if I'm at work on the network, at home on my work laptop, but not connected to my work network or on my home PC).
So, if it's not too hard, I'd like to request those features.
Thanks!!
Thanks I have just tried this but it doesnt work, do i need to delete the rest of the items from the batch file?7
@echo off
color 07
prompt $p$g
title Command Prompt Portable
cls
ver
cd\
START c:\program files\2brightsparks\syncbackse\syncbackse.exe
EXIT
Thanks
Change the line to
START "c:\program files\2brightsparks\syncbackse\syncbackse.exe"
and yes, you don't need those first lines in the batch file.
Thanks I have changed it to this now.
START "c:\program files\2brightsparks\syncbackse\syncbackse.exe"
EXIT
but it still wont start and also the c:promt windows doesnt close either?
Thanks
The syntax of the START command is a little unintuitive.
The first parameter is the name of the window, the second is the path to the executable.
You SHOULD be able to make this work by adding "" to the line like this:
START "" "c:\program files\2brightsparks\syncbackse\syncbackse.exe"
Thanks that works now.
can i just add lines of code to atout start other apps too