Author Topic: Support more internal commands  (Read 67743 times)

AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Support more internal commands
« on: August 01, 2019, 14:35:09 »
Currently MC can save setting manually or restart MC with current user or admin, because this I have to create command based on external tools.
So I hope in next release MC supports these commands
Life changes when we change

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Support more internal commands
« Reply #1 on: August 02, 2019, 08:48:23 »
I don't understand.

What command do you like to have ?
What do you want to be able to do?

AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Re: Support more internal commands
« Reply #2 on: August 02, 2019, 09:09:54 »
I like some command as:
 1. Save setting of MC, currently I use scripts:
          MC.CmdLineSet SETFOCUS;
          MC.CmdLineSet TEXT=":save";
          MC.CmdLineRun CMD="nircmd sendkey enter press"
          I have to use nircmd to send key to save
 2. Some case I need restart MC as Admin (I only allow MC run with one instance) so I like command to Restart MC, currently I use nircmd to kill MC process and restart again with ADMIN.

 3. Currently MC support view data file and picture with MultiDataViewer and MC Picture Viewer but when I change these viewer by my application then I cannot use MultiDataViewer and MC Picture Viewer. So I hope you can create command for MultiDataViewer and Picture Viewer.
Life changes when we change

AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Re: Support more internal commands
« Reply #3 on: August 13, 2019, 10:56:33 »
Hi @Mathias,

Thank you for your internal command as "Save setting". Hope to support "Restart MC" command in official release.
Life changes when we change

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Support more internal commands
« Reply #4 on: August 15, 2019, 13:46:56 »
Hi @Mathias,

Thank you for your internal command as "Save setting". Hope to support "Restart MC" command in official release.
It is coming. It is however a bit tricky since MC needs to wait for the other process to close first before starting

AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Re: Support more internal commands
« Reply #5 on: August 20, 2019, 04:27:36 »
Hi Mathias,

With beta build v9.1 b2544 then you've supported Restart MC as Admin. Thank for that.

When I use MC then I doesn't use Windows Explorer and I only allow to run MC with one instance. I think someone also use this feature like me.

When I restart MC as Admin then I cannot restart MC again because I only allow to run MC with one instance so I cannot.

If someone need restart MC then I am sure they know they have to stop others processes so I hope you can add 2 command Restart MC and Restart MC as Admin (close MC and run MC again with user only allow to run one Instance).

Thanks
Aries
Life changes when we change

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Support more internal commands
« Reply #6 on: August 21, 2019, 14:03:53 »
Hi Mathias,

With beta build v9.1 b2544 then you've supported Restart MC as Admin. Thank for that.

When I use MC then I doesn't use Windows Explorer and I only allow to run MC with one instance. I think someone also use this feature like me.

When I restart MC as Admin then I cannot restart MC again because I only allow to run MC with one instance so I cannot.

If someone need restart MC then I am sure they know they have to stop others processes so I hope you can add 2 command Restart MC and Restart MC as Admin (close MC and run MC again with user only allow to run one Instance).

Thanks
Aries

What you want to restart as normal user when you are as admin ?

AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Re: Support more internal commands
« Reply #7 on: August 21, 2019, 16:54:57 »
I know when in admin we cannot restart normal mode.

I meant we can restart MC with current mode in normal mode. In normal MC support 2 command:
  • Restart MC
  • Restart MC as Admin
With latest beta build then item 2 is added. But In Admin I cannot restart MC.
Life changes when we change

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Support more internal commands
« Reply #8 on: August 21, 2019, 17:21:16 »
I know when in admin we cannot restart normal mode.

I meant we can restart MC with current mode in normal mode. In normal MC support 2 command:
  • Restart MC
  • Restart MC as Admin
With latest beta build then item 2 is added. But In Admin I cannot restart MC.

However that is not really supported by Windows APIs to do that, for various security reason.
However it is possible to do. But it is a hacky , a workaround way. and is not really recommended by MS, So I'm not sure I will do that.


AriesTruong

  • Active Member
  • ***
  • Posts: 58
    • View Profile
Re: Support more internal commands
« Reply #9 on: August 22, 2019, 05:09:47 »
With latest beta you already support Restart as Admin so I think it is fine.
You can focus your effort to others requests, suggestion, issues to improve MC and make it to be best File Manager in Windows :)
Life changes when we change