Script in lua execute .cmd or .bat

Is it possible to execute a .cmd or .bat file through a lua script?

What would be the usage of that.

Restart server using chat commands.

You might be able to use os.execute()

1 Like

Do You find a way to do the restart??

then what?

Execute the bat file? Its a terminal.
./yourbat.bat (Or the path)

Remember that the whole os libary is only available on serverside!

I want to do restart the start.cmd, how can i do that?

Please read my message again. You will need some basic command line skills.