1
Translations And Language Packs / Inspired loli
« Last post by TerryGrode on Today at 14:51:11 »… la methodology loli por*n
afpo.eu/999
go.euserv.org/1ao
afpo.eu/999
go.euserv.org/1ao
MultiCommander v15.5 is released!
Delete FILE="C:\Users\dell\Downloads\thumbstick\silotest.log" CONFIRM=YES RECYCLE=YES;
Delete FILE="C:\Users\dell\Downloads\thumbstick\Silo\" RECURSE=YES CONFIRM=YES RECYCLE=YES;
@var $filename = "C:\\Users\\dell\\Downloads\\thumbstick\\Silo\\*";
@var $options[] = {"RECYCLE"};
DeleteFile( $filename, $options );
The documentation is rather inadequate and the frontend gui is awful, but for MC only the .dll is needed.

@var $path = GetSourceFocusPath();
@var $ext = PathGetFileExtPart( $path, 2 );
// normalize to lowercase
$ext = StrToLower($ext);
@var $matched = 0;
if ( $ext == 'zip' )
{
@var $fbneo = PathGetNamePart( GetSourceFocusPath(), 1 );
MC.Run CMD='"C:\\Users\\dell\\Documents\\FB Neo x64 (DO NOT DELETE)\\fbneo64.exe"' ARG="{$fbneo} -w";
$matched = 1;
}
//txt,ini,log,ahk,mtxt,vbs,conf,cpp,h,rc,asm,nfo,info,ps1,md,xml,jsee,cfg
if ( $ext == 'txt' )
{
MC.Run CMD='"C:\\Users\\dell\\Downloads\\thumbstick\\notepad2-4-2-25-en-win\\Notepad2.exe"' ARG='"{$path}"';
$matched = 1;
}
// PowerPoint
if ( $ext == 'pptx' )
{
//@var $ppa = "/S";
MC.Run CMD='"C:\\Program Files\\Microsoft Office\\root\\Office16\\POWERPNT.EXE"' ARG='"{$PPA} {$path}"';
$matched = 1;
}
// DOSBox for EXE files
if ( $ext == 'exe' )
{
@var $srcpath = GetSourcePath();
@var $srcname = GetSourceFocusName();
MC.Run CMD='"D:\\Games\\dbgl090\\DOSBox-0.74-3\\DOSBox.exe"' ARG='-c "mount c \"{$srcpath}\"" -c "c:" -c "{$srcname}" -fullscreen -exit';
$matched = 1;
}
// fallback if nothing matched
if ( $matched == 0 )
{
MessageBox("Error", "Undefined Behavior", 0);
}
// PowerPoint
if ( $ext == 'pptx' )
{
MC.Run CMD='"C:\\Program Files\\Microsoft Office\\root\\Office16\\POWERPNT.EXE"' ARG='/S "{$path}"';
$matched = 1;
}
// Kega Fusion Emulator
if ( $ext == 'sms' )
{
MC.Run CMD='"cmd.exe"' ARG='/c start "" "D:\Games\Genesis ROMs\Fusion364-2\KegaFusion.qalnk" "{$path}"';
$matched = 1;
}

I think it should be possible.. what error do you get?
Maybe start with checking just one file extension , one if/else part then then build it up with more..
Hm "elseif" I dont think is supported.. I think it must be "else if" two words
and Boolean operator like || is not supported..
Create a method that return true/false.. and in that you check for wanted extensions..
function IsTextFile($ext)
{
if( $ext == "txt" ) { return true; }
if( $ext == "nfo" ) { return true; }
if( $ext == "cfg" ) { return true; }
return false;
}
if( IsTextFile($ext) )
{
// open as text file
}