On a stand-alone Windows 10 System, I want to set the system clock.Could this be done via TWAPI?
This aparently requires administrator privileges.
https://www.wikihow.com/Change-the-Computer-Time-and-Date-Using-the-Command-Prompt
The command "date" and "time" should be executed.
Is there any experience, how to do that from a TCL program?
The administrator prompt would be ok for me.
Thus, create a batch file with parameters and give them administrator properties.
Then execute them with exec...
I will try.
Thanks for any idea,
Harald
On Tuesday, February 28, 2023 at 2:42:54 PM UTC+1, Harald Oehlmann wrote:
On a stand-alone Windows 10 System, I want to set the system clock.Could this be done via TWAPI?
This aparently requires administrator privileges.
https://www.wikihow.com/Change-the-Computer-Time-and-Date-Using-the-Command-Prompt
The command "date" and "time" should be executed.
Is there any experience, how to do that from a TCL program?
The administrator prompt would be ok for me.
Thus, create a batch file with parameters and give them administrator
properties.
Then execute them with exec...
I will try.
Thanks for any idea,
Harald
Regards,
Arjen
On a stand-alone Windows 10 System, I want to set the system clock.
This aparently requires administrator privileges.
https://www.wikihow.com/Change-the-Computer-Time-and-Date-Using-the-Command-Prompt
The command "date" and "time" should be executed.
Is there any experience, how to do that from a TCL program?
The administrator prompt would be ok for me.
Thus, create a batch file with parameters and give them administrator properties.
Then execute them with exec...
I will try.
Thanks for any idea,
Harald
On 2/28/2023 7:12 PM, Harald Oehlmann wrote:
On a stand-alone Windows 10 System, I want to set the system clock.
This aparently requires administrator privileges.
https://www.wikihow.com/Change-the-Computer-Time-and-Date-Using-the-Command-Prompt
The command "date" and "time" should be executed.
Is there any experience, how to do that from a TCL program?
The administrator prompt would be ok for me.
Thus, create a batch file with parameters and give them administrator properties.
Then execute them with exec...
I will try.
Thanks for any idea,
Harald
twapi::shell_execute -verb runas -path cmd.exe -params {/c time 04:49 pm}
Note user will get the elevation prompt.
/Ashok
On 2/28/2023 7:12 PM, Harald Oehlmann wrote:
On a stand-alone Windows 10 System, I want to set the system clock.
This aparently requires administrator privileges.
https://www.wikihow.com/Change-the-Computer-Time-and-Date-Using-the-Command-Prompt
The command "date" and "time" should be executed.
Is there any experience, how to do that from a TCL program?
The administrator prompt would be ok for me.
Thus, create a batch file with parameters and give them administrator
properties.
Then execute them with exec...
I will try.
Thanks for any idea,
Harald
twapi::shell_execute -verb runas -path cmd.exe -params {/c time 04:49 pm}
Note user will get the elevation prompt.
/Ashok
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 136:00:14 |
| Calls: | 12,087 |
| Files: | 14,997 |
| Messages: | 6,517,370 |