#
#
# .2020-08-24 17:00:28
Python
# ., 2020-08-24 17:00:28

How to execute a command in a new command prompt?

I am compiling code using the command line. If I call any command with

import os
os.system("И тут команда")

then it will be called on the same command line, in which I was. How can I open a new command prompt and run the command in it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danya  , 2020-08-24
@andro1

Before the command write start

import os
os.system("start команда")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question