Zhorn Software
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Leob
Posts : 2
Join date : 2022-12-28

Launch Caffeine with Powershell script Empty Launch Caffeine with Powershell script

Wed Dec 28, 2022 2:12 pm
Hello 

I have a question 
i want to use a powershell script to run caffeine64.exe -stes 

What i have working so far is the command : Invoke-Expression -Command "C:\Apps\Caffeine\caffeine64.exe"
but i want to use it with the -stes option 

Does anyone happen to know what I can do to get this working with the -stes option?

Thanks for any help  Smile
avatar
guest_today
Guest

Launch Caffeine with Powershell script Empty Re: Launch Caffeine with Powershell script

Thu Dec 29, 2022 6:37 am
Start-Process -FilePath "d:\Roaming\stickies\caffeine64.exe" -ArgumentList "-stes"

replace the filepath with yours
avatar
Leob
Posts : 2
Join date : 2022-12-28

Launch Caffeine with Powershell script Empty Re: Launch Caffeine with Powershell script

Thu Dec 29, 2022 9:05 am
Thanks for your help it's working now   Very Happy Very Happy
Sponsored content

Launch Caffeine with Powershell script Empty Re: Launch Caffeine with Powershell script

Back to top
Permissions in this forum:
You can reply to topics in this forum