|
Inicio → WINDEV 2024 → Working with Services/ ShellExec functions: How can I use them as Administrator |
Working with Services/ ShellExec functions: How can I use them as Administrator |
Iniciado por priv!zn4x5-y8vnFIM-nu11+p1z, 12,nov. 2024 19:12 - 1 respuesta |
| |
| | | |
|
| |
Publicado el 12,noviembre 2024 - 19:12 |
I am trying to work with Service functions (ServiceStart, ServiceStop) but it appears I do not have permissions to use them. How can I use them as an administrator?
Also, I am trying to run ShellExec and need to do it as an Administrator as well. Is there a way to do that?
Thanks, Mark |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 62 mensajes |
|
Publicado el 14,noviembre 2024 - 10:42 |
Hello Mark, take a look at https://help.windev.com/…
AppToStart is Process AppToStart..Executable = "myapp.exe" AppToStart..CommandLine = "/SILENT" AppToStart..ExecutionLogin = "DOMAIN\USER" AppToStart..ExecutionPassword = "mypassword"
ExeRemoteRun(AppToStart, exeReturnValue, "COMPUTER2") WHILE AppToStart..ExecutionInProgress = True Wait(100) END
Trace(AppToStart..ReturnValue)
-- Hope this helps Andrea |
| |
| |
| | | |
|
| | | | |
| | |
|