Recent Posts

Pages: [1] 2 3 4 5 ... 10
1
Beta Releases / Re: v14.0 BETA
« Last post by User_99 on Yesterday at 22:49:32 »
Hi Mathias,

thx for update.
Translation strings all fine. Great work...
2
Beta Releases / Re: v14.0 BETA
« Last post by Jungle on June 20, 2024, 15:44:51 »
Yes some Windows API report  NOT FOUND and some SHARING VIOLATION..
Its only for some very special system files. Not sure it is worth the time to create some workaround just for them.
Let FileExists() and others return:
* 1 when GetFileAttributes returns true
* 0 when GetFileAttributes returns false and FILE_NOT_FOUND
* 2 (or -1 or whatever else) otherwise

It will guarantee file existence or absence
3
Beta Releases / Re: v14.0 BETA
« Last post by Mathias (Author) on June 20, 2024, 14:54:38 »
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.

I tried PathFileExists(). For non-existing file it returns 0x02 FILE_NOT_FOUND while for "hiberfil.sys" it returns 0x20 ERROR_SHARING_VIOLATION. Also FindFirstFile() succeedes.

It looks inconsistent when you see a file in the panel, but script says it doesn't exist.
Yes some Windows API report  NOT FOUND and some SHARING VIOLATION..
Its only for some very special system files. Not sure it is worth the time to create some workaround just for them.
4
Support and Feedback / Re: how to add filetyoe column
« Last post by ncnnnn on June 20, 2024, 14:31:16 »
thanks! Looking forward to version 4.1 software  👍

”Never been a request for actually showing that..“

I hope to switch seamlessly between using Explorer on someone else's computer and using Multicommand on my own computer
I like multicommand with multiple tabs, each tab has an independent folder tree,and Make full use of the widescreen left and right panel  :)
Similar software also has FreeCommander, but it seems to use . net to implement some functions and has a slower response
thank you! :)

ps: I don't know if it's a bug

“Configuuration"-->"Extension/plug-in manager"--> "explorer panel"
webpage show: http:\\www.multicommander.
not http://

and click http:\\www.multicommander.com,  msedge show "Forbidden"

The program can now display the extension column, but cannot find the file type column.
The program has already obtained the icon for the file, so it should also be able to obtain the file type.

I hope to display the corresponding type column like explorer  . thanks

Never been a request for actually showing that.. But I think it is easy to add.. See if I get time to add it to 14.1

5
Support and Feedback / Re: how to add filetyoe column
« Last post by ncnnnn on June 20, 2024, 14:21:40 »
thank your script 👍。but I donot know how to add it.
 
But I think it doesn't have a cache and can only be queried during runtime, which takes a lot of time

if ($type_name ==""){
$_COLUMN_TYPE_DESCRIPTION =$ext+" File"
}

If I get you right, you may try the following script:

Code: [Select]
@var $type_name;

if ( IsFolder($_FILEPROP_FILEPATH) == 0 )
{
  @var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);
  $type_name = RegValueGetSZ("HKCR", $ext, "");
}
else
{
  $type_name = "Directory";
}

@var $_COLUMN_TYPE_DESCRIPTION = RegValueGetSZ("HKCR", $type_name, "");

Create scriptable column and add $_COLUMN_TYPE_DESCRIPTION as the Output variable.

But for unknown extension it will return empty string. I think in such cases Windows [Explorer] constructs description itself in the form "EXT File". And it depends on the OS locale. I'm not sure it's possible (or there's an easy way) to get it from OS.
6
Beta Releases / Re: v14.0 BETA
« Last post by Jungle on June 20, 2024, 14:09:47 »
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.

I tried PathFileExists(). For non-existing file it returns 0x02 FILE_NOT_FOUND while for "hiberfil.sys" it returns 0x20 ERROR_SHARING_VIOLATION. Also FindFirstFile() succeedes.

It looks inconsistent when you see a file in the panel, but script says it doesn't exist.
7
Beta Releases / Re: v14.0 BETA
« Last post by Mathias (Author) on June 20, 2024, 11:20:52 »
If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.
But MC somehow shows that files in Explorer Panels. If it can detect them, then I don't see a reason why MultiScript's FileExists could not.
Try IsFolder() for "hiberfil.sys"

Listing all files just to see if a file exists is not efficient. It is very slow.
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.
8
Beta Releases / Re: v14.0 BETA
« Last post by Jungle on June 20, 2024, 11:13:37 »
If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.
But MC somehow shows that files in Explorer Panels. If it can detect them, then I don't see a reason why MultiScript's FileExists could not.
Try IsFolder() for "hiberfil.sys"
9
Support and Feedback / Re: how to add filetyoe column
« Last post by Mathias (Author) on June 20, 2024, 10:49:29 »
The program can now display the extension column, but cannot find the file type column.
The program has already obtained the icon for the file, so it should also be able to obtain the file type.

I hope to display the corresponding type column like explorer  . thanks

Never been a request for actually showing that.. But I think it is easy to add.. See if I get time to add it to 14.1
10
Beta Releases / Re: v14.0 BETA
« Last post by Mathias (Author) on June 20, 2024, 10:48:07 »

I don't see it losing defined scripables columns. have you checked  the option for the script to be a FileProp?
Thanks. Checking this option works.

But there's another issue. Some multiscript functions fails with certain files. E.g. FileExists returns 0 for "hiberfil.sys", "pagefilt.sys", "swapfile.sys". And IsFolder fails with script engine error.

This sample code: will variable be visible out of its scope?

Code: [Select]
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}

it should be "@gvar" to force defined a global. But that branch is not merged. Will fix that tonight.

IsFolder() works for me

If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.
Pages: [1] 2 3 4 5 ... 10