PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
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
Started by priv!zn4x5-y8vnFIM-nu11+p1z, Nov., 12 2024 7:12 PM - 1 reply
Connect yourself…
priv!zn4x5-y8vnFIM-nu11+p1z
#1
Posted on November, 12 2024 - 7:12 PM
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
Report
0
0
Andrea Chiadò Piat
#2
Registered member
60 messages
Posted on November, 14 2024 - 10:42 AM
Hello Mark,
take a look at
https://help.windev.com/…
// Start a remote application (advanced use)
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WINDEV 2024
WEBDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WINDEV (earlier versions)
WINDEV 26
WINDEV 2024
WINDEV 2024
WINDEV 25
WEBDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text