S
S
sddvxd2017-04-04 15:02:20
PHP
sddvxd, 2017-04-04 15:02:20

How to execute the internal program?

Good afternoon!
The following question arose: there is a system () function and, in theory, it should execute all programs. However, after a little thought, I understood why it doesn't work, let's say shutdown in this function is an internal program, and system () executes only external ones
. How to execute an internal command?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gasoid, 2017-04-04
@Gasoid

bash shutdown

P
Pavel, 2017-04-04
@PavelFokeev

At one time, while solving a similar problem, I came across the nircmd.exe program for win.
I use it like this
cmd('nircmd.exe exitwin poweroff');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question