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: Kanri (Oct 9, '24), Platform 29.5.3 (Jun 27, '24)
1,100+ portable packages, 1.1 billion downloads
No Ads November!, Please donate today
Use the current pre-release, right click on an app and select "Start Automatically".
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
Thank you
Graham Yates
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?
Graham Yates
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.
Sometimes, the impossible can become possible, if you're awesome!
the program i run is syncback on start up to sync my folders and files.
Graham Yates
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.
I made this half-pony, half-monkey monster to please you.
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.
Sometimes, the impossible can become possible, if you're awesome!
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.
I made this half-pony, half-monkey monster to please you.
It's quite easy to implement and would require maybe 4 lines of code.
Sometimes, the impossible can become possible, if you're awesome!
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!!
Michael D. Shook
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
Graham Yates
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.
I made this half-pony, half-monkey monster to please you.
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
Graham Yates
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"
I made this half-pony, half-monkey monster to please you.
Thanks that works now.
can i just add lines of code to atout start other apps too
Graham Yates