Opening Task Manager

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
XY fan
Posts: 151
Joined: 24 Mar 2022 10:58

Opening Task Manager

Post by XY fan »

Could someone give me a script to open the Task Manager with a button I will put on the Toolbar. Assuming this is possible - I am still educating myself about scripts!

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Opening Task Manager

Post by highend »

And you can't google how to run the taskmgr and the run command from the help?
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Opening Task Manager

Post by Horst »

That would be a rather unnecessary button or script
as there enough Windows ways to invoke the Taskmanager.

Ctrl + Shift + Esc
Right click on the taskbar

If you insist of a button add for example for the Left click of a button
run "Taskmgr.exe";
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

XY fan
Posts: 151
Joined: 24 Mar 2022 10:58

Re: Opening Task Manager

Post by XY fan »

Thanks - that works just fine.

The script starts the Task Manager in a small windows - if I want it to start up Maximised do I just add /M or ....

XY fan
Posts: 151
Joined: 24 Mar 2022 10:58

Re: Opening Task Manager

Post by XY fan »

I decided I would rather run Sysinternals Process Explorer from the button so now need a script to do that.

I have got as far as -

run "C:\Program Files\Power Toys\Process Explorer\program\procexp64.exe"; - which is the correct path to where I have put the executable.

but which does not work. What am I missing - I have read the Help file!

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Opening Task Manager

Post by highend »

I have read the Help file!
No, you didn't.

That path contains spaces^^
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Opening Task Manager

Post by klownboy »

Running "procexp64.exe" with run "D:\Tools\ProcessExplorer\procexp64.exe"; using my path to it works for me. Do you have that script line in the CTB "On left-click" or "On right-click" block?

As highend mentioned, your path/name has spaces, mine does not. Try run """C:\Program Files\Power Toys\Process Explorer\program\procexp64.exe""";
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

XY fan
Posts: 151
Joined: 24 Mar 2022 10:58

Re: Opening Task Manager

Post by XY fan »

Thanks to both of you especially klownboy. The extra " works. But I still do not see where the spaces are/were!

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Opening Task Manager

Post by highend »

???
One of my scripts helped you out? Please donate via Paypal

WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

Re: Opening Task Manager

Post by WirlyWirly »

When using the run command, I find that passing your arguments through the lax() function reads a lot more natural.

run lax("C:\Path\to\file.exe" "flag1" "flag2");

XY fan
Posts: 151
Joined: 24 Mar 2022 10:58

Re: Opening Task Manager

Post by XY fan »

WirlyWirly wrote: 20 May 2022 16:50 When using the run command, I find that passing your arguments through the lax() function reads a lot more natural.

run lax("C:\Path\to\file.exe" "flag1" "flag2");
Thanks - that works too

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Opening Task Manager

Post by highend »

And runq works as well and in general, all correction quotings would have worked...
One of my scripts helped you out? Please donate via Paypal

Post Reply