You are here

Auto start

16 posts / 0 new
Last post
gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
Auto start

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

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Yes

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

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
Thank you

Thank you

Graham Yates

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
The only problem i have just

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

John T. Haller
John T. Haller's picture
Online
Last seen: 1 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Currently

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!

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
the program i run is syncback

the program i run is syncback on start up to sync my folders and files.

Graham Yates

solanus
solanus's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2006-01-21 19:12
CommandPrompt Portable?

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.

John T. Haller
John T. Haller's picture
Online
Last seen: 1 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
True

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!

solanus
solanus's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2006-01-21 19:12
Of course, this is meant as a workaround

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.

John T. Haller
John T. Haller's picture
Online
Last seen: 1 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Easy

It's quite easy to implement and would require maybe 4 lines of code.

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

shookmon
Offline
Last seen: 6 years 9 months ago
Joined: 2007-02-21 16:26
auto start batch file

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

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
Thanks I have just tried this

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

solanus
solanus's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2006-01-21 19:12
Batch files don't like spaces

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.

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
Thanks I have changed it to

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

solanus
solanus's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2006-01-21 19:12
Sorry, forgot something.

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.

gjjh25
Offline
Last seen: 1 year 1 month ago
Joined: 2006-04-03 07:38
Thanks that works now. can i

Thanks that works now.

can i just add lines of code to atout start other apps too

Graham Yates

Log in or register to post comments