Multi Commander > Script

Script to launch portable programs in portable mode.

(1/1)

phedlund:
Here is a simple script to use in your buttons to launch portable programs from the portable version of multicommander.

NOTE: Multicommander is located on
F:/PortableApps/MultiCommander/multicommander.exe

Synwrite is located on
F:/PortableApps/synwrite/syn.exe

Using this script simply import into the button editor and change the string associated with $runProg


@var $runProg;
@var $runpg;

$runProg = "SynWrite\Syn.exe";

$runpg = StrSub(GetTagValue("${mcinstallpath}"),0,16);
$runpg = $runpg + $runProg;
MC.Run CMD="{$runpg}"



If the application your using is on another path but the same drive as multicommander portable, change the code
as shown below

Multicommander is on F:\multicommander\multicommander.exe
Synwrite is on f:\progs\synwrite\syn.exe


@var $runProg;
@var $runpg;

$runProg = "progs\SynWrite\Syn.exe";

$runpg = StrSub(GetTagValue("${mcinstallpath}"),0,3);
$runpg = $runpg + $runProg;
MC.Run CMD="{$runpg}"

Change the 3rd line of the script and the 4th line.


Navigation

[0] Message Index

Go to full version