INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can I change the name of the executable? MC25.exe VS. MC.exe?  (Read 797 times)

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Can I change the name of the executable? MC25.exe VS. MC.exe?
« on: August 10, 2019, 01:32:37 pm »

I have a home automation event that runs a script that calls the media center executable and sends commands to media center.

Whenever media center is upgraded, I have to re-setup my events. Can I just rename the executable after I upgrade to a generic filename (like MC.exe) and save me the hassle of the edits?

Thanks,
Jim
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10722
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #1 on: August 10, 2019, 01:43:11 pm »

I would recommend you copy it, and not rename it, since MC itself accesses it for a few functions as well. But otherwise I don't see why that wouldn't work.
Logged
~ nevcairiel
~ Author of LAV Filters

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #2 on: August 10, 2019, 02:00:56 pm »

I would recommend you copy it, and not rename it, since MC itself accesses it for a few functions as well. But otherwise I don't see why that wouldn't work.

Wouldn't that potentially run 2 instances of the application? If I am running MC.exe and it calls for MC25.exe, it will try to launch MC25.exe, correct?

That's how it surfaced on my PC that runs media center. I had started MC25.exe and then my script called MC24.exe and launched an instance of the prior version.
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #3 on: August 10, 2019, 05:49:56 pm »

Use MCcl.exe instead:
https://blog.glynor.com/mccl
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #4 on: August 11, 2019, 07:06:27 am »

Use MCcl.exe instead:
https://blog.glynor.com/mccl

This is awesome. Thank you very much!
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #5 on: August 11, 2019, 07:59:45 am »

Use MCcl.exe instead:
https://blog.glynor.com/mccl

My antivirus application is preventing me from running...
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
« Reply #6 on: August 11, 2019, 09:25:21 am »

My antivirus application is preventing me from running...

That's because it is unknown and it looks dangerous because it shells out commands. It happens. I wrote it and swear it has nothing bad so you could just set it to trust. All it does is lookup the current version from COM (when you use the --update flag), saves the version number to a data file (%AppData%\Roaming\glynor\MCcl\MCcl.opt), and then passes everything else to MC##.exe replacing ## with the saved version number.

But if you don't like it, the copy/paste/rename method Hendrik suggested works too. This is just an easier way to update it more quickly, really.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up