Recent

Author Topic: Cmd annoyance and a solution  (Read 5528 times)

balazsszekely

  • Guest
Re: Cmd annoyance and a solution
« Reply #15 on: February 10, 2023, 06:10:26 pm »
@all
Thank you for the feedback. Apparently I was wrong, there are several good and much easier solution then the shell integration.  :)

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2054
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Cmd annoyance and a solution
« Reply #16 on: February 10, 2023, 09:12:18 pm »
@getmem, i like your try best but its not what i need since it uses wrong settings for my usecase (like all other methods mentioned in here)
if allowed, i modify it to my needs and show you the "kodezwergs" needs :D
i might switch away from handler to a simple exe anyway, like i did in past but killed source  :-X

disadvantage and what i really do need is, that above methods just act within the file explorer while my approach would rely on context menu itself do either use folder or file as input, independent from file explorer.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

balazsszekely

  • Guest
Re: Cmd annoyance and a solution
« Reply #17 on: February 11, 2023, 07:41:25 am »
@KodeZwerg
Quote
if allowed, i modify it to my needs and show you the "kodezwergs" needs :D 
Allowed? Please modify it in any way you like.  :)

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Cmd annoyance and a solution
« Reply #18 on: February 11, 2023, 07:59:26 am »
When I open cmd(command promt) it's defaulting to the user(or system32) folder, .....

Do you mean from within the Lazarus IDE ?

https://wiki.freepascal.org/IDE_tricks#Opening_a_Terminal_Windows_from_the_IDE

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

balazsszekely

  • Guest
Re: Cmd annoyance and a solution
« Reply #19 on: February 11, 2023, 10:29:02 am »
@dbannon
Quote
Do you mean from within the Lazarus IDE ?
No, from the file explorer, this issue has nothing to do with Lazarus, other then compiling the shell extension with it.

PS: Thanks for the link.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2054
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Cmd annoyance and a solution
« Reply #20 on: February 14, 2023, 01:59:21 pm »
Here is what I have done, build from scratch. Maybe someone likes.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

balazsszekely

  • Guest
Re: Cmd annoyance and a solution
« Reply #21 on: February 14, 2023, 06:50:17 pm »
Here is what I have done, build from scratch. Maybe someone likes.
Very nicely done! I like it. The install/uninstall feature is a a big bonus, plus creating the window/buttons with pure api is a nice touch too.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2054
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Cmd annoyance and a solution
« Reply #22 on: February 14, 2023, 10:58:18 pm »
I am glad you like it. Yeah I tried to get out a small file, but my original goal to have a 50kb I did not reached, used too many units :D
Anyway, for me it was more important to having this feature directly in context, always available and not just within file explorer :-*
That way I also found out a difference between Delphis Registry unit and Lazarus, on Delphi I do not need to delete subkey first, it just delete :-[
When I would spend more time to make it full api only, I guess my wanted 50kb I could reach :P
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Cmd annoyance and a solution
« Reply #23 on: February 14, 2023, 11:30:13 pm »
On Windows 11 there's already a menu that opens the terminal. By default is configured as PowerShell but if you right click the PowerShell window title and go to settings, there's the 'settings' panel where you can choose CMD.

BobDog

  • Sr. Member
  • ****
  • Posts: 394
Re: Cmd annoyance and a solution
« Reply #24 on: February 15, 2023, 11:49:56 am »
@dseligo
Quote
But: don't you already have 'Open in terminal' when you right click (or Shift + Right click) in empty space in Windows explorer?
I don't have any command prompt related item(s) in the context menu, only "Open PowerShell window here" (Shift + Right click), but PowerShell it's a different beast.
You can open a window in powershell and type cmd.exe.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2054
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Cmd annoyance and a solution
« Reply #25 on: February 15, 2023, 10:56:11 pm »
If someone is interested, here is a ~65kb build of my above code (not compressed, 64bit build)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Graham1

  • Jr. Member
  • **
  • Posts: 57
Re: Cmd annoyance and a solution
« Reply #26 on: February 23, 2023, 10:18:23 pm »
Why not just use Winaero Tweaker: https://winaero.com/winaero-tweaker/?

It has the Command Here option and dozens of other tools to amend (fix) Windows.
Windows 10/11 Home 64-bit (and Linux because I have to)
Lazarus 2.0.12 / FPC 3.2.0 (because libQt5pas 1.2.6)
Linux Mint 20 (because GLIBC_2.31)

lazpas

  • Jr. Member
  • **
  • Posts: 83
Re: Cmd annoyance and a solution
« Reply #27 on: April 16, 2023, 01:41:43 pm »
Hi,@GetMem

After unregister,how to delete this com file?

Thanks.

 

TinyPortal © 2005-2018