I have an icon on my desktop linked to a script that will turn off the computer.
But it's not part of Rocket Dock.
Is there some way I can link a Rocket Dock icon to this script, or anything really, that will turn off the computer?
Thanks..this forum is always so helpful.
KJ
It is currently March 30th, 2023, 7:46 am
Icon to turn computer off.
-
- Posts: 21
- Joined: November 10th, 2020, 5:21 pm
-
- Posts: 447
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Icon to turn computer off.
I can recommend an application that can exe the bat file extension.Hoosier wrote: ↑August 19th, 2022, 11:39 pm I have an icon on my desktop linked to a script that will turn off the computer.
But it's not part of Rocket Dock.
Is there some way I can link a Rocket Dock icon to this script, or anything really, that will turn off the computer?
Thanks..this forum is always so helpful.
KJ
Bat To Exe Converter
or
If you send me the icon you want, I can create an executable file for you

or
I don't know about Rocketdock. If you can change the icon through the application, I can share normal files
code content "shutdown.exe" -s -t 00
You do not have the required permissions to view the files attached to this post.
I don't know where i going from here, but i promise it won't be boring... 

-
- Moderator
- Posts: 1222
- Joined: February 16th, 2012, 3:32 am
- Location: Berlin, Germany
Re: Icon to turn computer off.
If your script is in some powersell or commandline file then you can use some mouse action to run it, for example LeftMouseUpAction=["C:\your script.bat"]
You can alao use RunCommand plugin to run such scripts.
https://docs.rainmeter.net/manual/plugins/runcommand/
https://forum.rainmeter.net/viewtopic.php?t=16715
You can alao use RunCommand plugin to run such scripts.
https://docs.rainmeter.net/manual/plugins/runcommand/
https://forum.rainmeter.net/viewtopic.php?t=16715
-
- Posts: 21
- Joined: November 10th, 2020, 5:21 pm
Re: Icon to turn computer off.
Thank you for the replys, both of which I've tried with no luck.
I think my ignorance of the correct termonolgy for what I'm using may have mislead you.
This is the line that I am using with the decktop icon....
%windir%\System32\shutdown.exe /s /t 0
This is inserted into the "target" box located in the icons properties.
When I insert this line into the "target" box for a RocketDock icon and then activate the icon I get the following error message.
"Windows connot find :C/WINDOWS\System32\shutdown.exe/s/t 0."
I think my ignorance of the correct termonolgy for what I'm using may have mislead you.
This is the line that I am using with the decktop icon....
%windir%\System32\shutdown.exe /s /t 0
This is inserted into the "target" box located in the icons properties.
When I insert this line into the "target" box for a RocketDock icon and then activate the icon I get the following error message.
"Windows connot find :C/WINDOWS\System32\shutdown.exe/s/t 0."
-
- Posts: 447
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Icon to turn computer off.
I downloaded and tried the app for you.Hoosier wrote: ↑August 20th, 2022, 4:44 pm Thank you for the replys, both of which I've tried with no luck.
I think my ignorance of the correct termonolgy for what I'm using may have mislead you.
This is the line that I am using with the decktop icon....
%windir%\System32\shutdown.exe /s /t 0
This is inserted into the "target" box located in the icons properties.
When I insert this line into the "target" box for a RocketDock icon and then activate the icon I get the following error message.
"Windows connot find :C/WINDOWS\System32\shutdown.exe/s/t 0."
You don't need any scripts.
Just follow the steps below.
Right Click => Add Item => Blank Icon => Right Click (Created Icon) => Icon Settings...
Target=C:\Windowns\System32\shutdown.exe
Arguments=-s -t 00
You do not have the required permissions to view the files attached to this post.
I don't know where i going from here, but i promise it won't be boring... 

-
- Posts: 21
- Joined: November 10th, 2020, 5:21 pm
Re: Icon to turn computer off.
It works now....
Thank you very much for the help.
Every visit here is a learning experience.
Thank you very much for the help.
Every visit here is a learning experience.
-
- Posts: 447
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Icon to turn computer off.

I don't know where i going from here, but i promise it won't be boring... 

-
- Posts: 32
- Joined: March 24th, 2022, 9:56 pm
Re: Icon to turn computer off.
This is actually very useful, I'll be yoinking this. Might try it out myself! 
