Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tezcatlipoca

Pages: [1]
1
Thank you. Backing up a little something that I need, but I restored the settings.
I update all the necessary software is automatically scheduled. We'll have a portable version of MC updated built-in commands manually.
It's not the biggest problem in my life.  :)

2
After rewriting the new version in the same folder with the version of Multi Commander, I have lost the settings: color panels, scripts, custom commands, a button on the Quick Launch ...
Maybe it makes sense for the portable version stores all the settings in a special separate folder? Also, if a portable version available in two versions (win32 and win64), how to make them the same settings?
It seems to me logical to make a universal boot loader which will run the program desired bit. Or make a different name, as is done in ConEmuPack.

3
Script / Script engine error
« on: November 12, 2015, 02:05:07 »
Script engine error => No matching function with name "AddFileAttribute" found.

Not found:
  • AddFileAttribute()
  • SetFileAttribute()
  • GetFileAttribute()
  • PathGetPathPart()
  • PathGetNamePart()
  • and etc.

need import the desired function?

4
Script / Re: View *.FB2.ZIP
« on: October 26, 2015, 03:36:58 »
SUPER!!!!  This is exactly what you need!
All the tunes in the "File Type Setup", not need any additional settings.

and the script checks only *.FB2.ZIP, and... VIEWAS="*.FB2"

Code: [Select]
if ( IsFolder( "{focusfilepath}" ) )
{
# This is folder...
MC.Explorer.SizeFolder ONLYFOCUS;
break;
}
if ( StrIsRegExpMatchNoCase( "${focusfilepath}", "\.FB2\.ZIP$" ) )
{
# FictionBook v2 in ZIP
MC.View FILE="${focusfilepath}" VIEWAS="*.FB2";
}
else
{
# other...
MC.View;
}

Here are carried out all my requirements, there is no duplication of settings and everything is easy.

5
Script / Re: View *.FB2.ZIP
« on: October 23, 2015, 02:28:31 »
I'm sorry, but I do not know much English, so wrongly asked.
how to assign the desired key, I know.

The problem is that I want to leave everything standart view settings: pictures, texts, etc. as it is, and only on the zip-archive to check what their view.
and that I want to set up in "File Type Setup" tab Viewers (key "F3"!!!)

how to assign the execution of my script for *.zip?
there can only be: "Program Path / Internal Extension (" MC Picture Viewer "and" MultiDataViewer ") / Windows Action"

can somehow use MC.RunUserCmd?

Ideally - to do the treatment by the Commander of double, triple, etc. extensions.

I can write view.cmd and use it to determine the file type and assign the desired program. But then it is no need to configure the file types in the Multi Commander and is the main charm of Multi Commander - own scripting language.

6
Script / View *.FB2.ZIP
« on: October 22, 2015, 04:29:06 »
I have a lot of books in a format *.fb2. To save disk space, all the books are stored in zip-archives. Therefore, my books have a double extension *.fb2.zip.
To read books using SumatraPDF, without unpack them from the archive.
Conventional zip-archives handle standard way.

Code: [Select]
@var $RunCMD = "SumatraPDF.exe"
@var $file_nm = GetSourceFocusPath();
@var $fb2zip = StrIsRegExpMatchNoCase( $file_nm, ".FB2.ZIP$");
if ( $fb2zip > 0 )
{
   MC.Run CMD='"{$RunCMD}"' ARG='"{$file_nm}"';
}
else
{
   MC.DataViewer.View FILE="${focusfilepath}" BINARY;
}

How to assign F3 to run this script?

Pages: [1]