Page 1 of 1

cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-18, 20:58 UTC
by Fla$her
  1. cm_OpenNetwork in the active panel.
  2. A file or folder is selected in the target panel.
    1. ✅

      Code: Select all

      TOTALCMD#BAR#DATA
      cd
      %T%R1
      wciconex.dll,119

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_PATH%\Scripts\Test.js
      %S1:~,0
      wcmicon2.dll,44
      
      <blabla>

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119
      
      :

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119
      
      .

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119
      
      <>

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119
      
      /
    2. 🚫

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119
      
      \

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_EXE% /O /S
      %T%R1
      wciconex.dll,119

      Code: Select all

      TOTALCMD#BAR#DATA
      %COMMANDER_PATH%\Scripts\Test.js
      %S1:~,0
      wcmicon2.dll,44
      =

      Code: Select all

      ---------------------------
      Total Commander
      ---------------------------
      File not found!
      ...

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-19, 14:48 UTC
by ghisler(Author)
Sorry, can you explain what you are trying to achieve?

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-19, 15:03 UTC
by Fla$her
Obviously, I want it to work the same way in case of pressing buttons 3.b. as it does in case of buttons 3.a., i.e. without errors and warnings.

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-22, 08:22 UTC
by ghisler(Author)
The problem is that the function to launch programs (ShellExecuteEx) does not seem to like the start paths you provide. I don't think that there is anything I can do about that because it's a Windows function.

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-22, 12:58 UTC
by Fla$her
I don't see a relation with the function for %S and %R only. Why is there no such problem with the rest of the parameters?
  1. Why is there no problems with the same path with %T%M or %C2, but there is with %T%R1?
  2. Why is there no problem with an empty parameters field, but there is with %S1:~,0, which returns an empty string?
  3. If the cursor is set to %COMMANDER_EXE% in target panel, then why is there a problem when pressing such a button

    Code: Select all

    TOTALCMD#BAR#DATA
    %COMMANDER_EXE% /O /S
    %T%R1
    wciconex.dll,119
    
    \
    , but not when pressing such a button? >

    Code: Select all

    TOTALCMD#BAR#DATA
    %COMMANDER_EXE% /O /S "%COMMANDER_EXE%"
    
    wciconex.dll,119
    
    \
  4. Why is there a problem with an empty start path in cm_OpenNetwork, but not after opening any wfx plugin, e.g. \\\Registry\?
  5. Why is there no error when setting \\ in the "Start path:" field, but when setting \, \\\, \\\\ etc. is there?

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-26, 14:35 UTC
by ghisler(Author)
Why does it matter? The path parameter is invalid.

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-26, 15:05 UTC
by Fla$her
Could you first answer my questions point by point? This is important to me, otherwise our conversation doesn't look productive. Thanks.

This is important primarily because some of my buttons and user commands with an empty "Start path:" field don't work properly from cm_OpenNetwork, which I open quite often.

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-29, 07:44 UTC
by ghisler(Author)
Sorry, i do not have the source code of Microsoft's ShellExecuteEx function, so I cannot say why it fails with some start paths but not with others.

Re: cm_OpenNetwork: executable file without start path (except for '\') + %S/%R = File not found!

Posted: 2024-04-29, 08:14 UTC
by Fla$her
That's how you can answer only points 4 and 5, but not 1, 2, 3, where the problem is clearly related to the implementation of TC parameters.
That's why I asked you to answer point by point, because your answers don't explain the logic of behavior when the factors coincide.