Recent Posts

Pages: 1 [2] 3 4 5 6 ... 10
11
I want to use MC's MultiScript to delete the contents of a folder while keeping the folder itself intact, just delete all files and subdirectories inside it. I tried a lot of AI-generated code but it didn't work ! Is it even possible to do this via MC ? 'Cause while it says D:\\SomeFolder\\* is valid syntax, I think the asterisk (to delete the contents of the folder) is breaking the script, I'am at wits end here ! I can get MC to delete a single file, but a folder /w files and subdirectories is another thing altogether. I'd appreciate all the help I can get ! I'am not certain but I think I read somewhere that MC has removed a lot of scripting commands, especially VBScript, though I'am not sure. P.S: Perhaps using a For loop to delete the files inside ?

I tried this:
Code: [Select]
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;

And before that this:
Code: [Select]
@var $filename = "C:\\Users\\dell\\Downloads\\thumbstick\\Silo\\*";
@var $options[] = {"RECYCLE"};
DeleteFile( $filename, $options );

P.P.S: Nevermind, I'am doing it using a PowerShell script, & using MC to call it…
12
Support and Feedback / Re: Show Video codec
« Last post by Mathias (Author) on November 11, 2025, 08:48:28 »
MC do not currently support getting metadata about codec from video files

If you can extract that information using MultiScript. (calling some external tool to get it or something)
Then you can create a scriptable file property and have it be shown in a column.
13
Support and Feedback / Show Video codec
« Last post by Nierewa on November 08, 2025, 23:24:20 »
Hi,

I search a way to display video codec with Multi Commander.
I found a topic with a hint to mediainfo dll

https://forum.multicommander.com/forum/index.php/topic,3631.msg10652.html

Quote
The documentation is rather inadequate and the frontend gui is awful, but for MC only the .dll is needed.

How can I add this plugin?

Thanks  :)
14
I got it to work, but there was one extension that I couldn't get to work though (for .PPTX to open as a Slideshow not in Editor), it had a "/S" argument before the FilePath argument, it wasn't being read correctly by PowerPoint. In the FileType Setup it works when I Launch it though (can't replicate that execution behavior in the MultiScript sadly.) This code is heavily truncated:

Code: [Select]
@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);
}

File Type Setup (Working)::
Program Path:: C:\Program Files\Microsoft Office\root\Office16\POWERPNT.EXE
Program Parameters:: /S "${filepath}"

P.S: Nevermind, I figured it out::
Code: [Select]
// PowerPoint
if ( $ext == 'pptx' )
{
    MC.Run CMD='"C:\\Program Files\\Microsoft Office\\root\\Office16\\POWERPNT.EXE"' ARG='/S "{$path}"';
    $matched = 1;
}

Also if you intend on using *.QALNK shortcuts with filepath arguments this will come in handy !::

Code: [Select]
// 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;
}
15
Support and Feedback / Re: attempt to change a button on button panel
« Last post by Babilon55 on November 04, 2025, 13:05:43 »
Hi.

yes... file was read only....
I changed it..... :)
10Q
16
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
}


Yes I don't know how to do the Run part, otherwise I'd give it a go ! P.S: Nvm I had the code for MC.Run. Anyway I get false and Parse error. I'll try a few more times…
17
I got AI to generate valid MultiScript. But you need to make sure the AI knows how MultiScript works firsts.
Like either linking to all the pages and examples on the documentation page or copy and paste that information into a document that you include to the LLM.

18
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
}

19
Support and Feedback / Re: attempt to change a button on button panel
« Last post by Mathias (Author) on November 03, 2025, 14:35:40 »
That error is actually shown if it fails to delete the current file. It need to delete it before it can save the new.
Might be that the file has readonly attributes or file permissions that prevent its

If installed
C:\Users\[USERNAME]\AppData\Roaming\MultiCommander\Config\MultiButtons.xml

if portable version it is in the Config/MultiButtons.xml 

20
Support and Feedback / Re: attempt to change a button on button panel
« Last post by Mathias (Author) on November 03, 2025, 12:08:52 »
Any error in the app log when you do it  ? (ctrl+L)
Pages: 1 [2] 3 4 5 6 ... 10