in Education by
I am trying to run a .bat file in a new window so the user of the PC can input commands, however I want to also be able to programatically input commands at the same time. Is this possible? I have been fiddling around with subprocess and Popen however I havn't been able to get anything to work. Thanks in advance for any advice. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
If I get your question right, you are looking for something like this: subprocess.Popen("start your_file_name.bat", shell=True) It opens a new cmd window and runs your .bat file in it while the python code runs forward.

Related questions

0 votes
    I am trying to install apache spark to run locally on my windows machine. I have followed all instructions ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    The java project I am working on has a .bat file and a .sh file which build the CLASSPATH for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
    The java project I am working on has a .bat file and a .sh file which build the CLASSPATH for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    What is the best way to open a file as reading/write if it exists, or if it does not, then create it and ... to do the opening part. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    with the help of _____ option we can save another copy of the picture with the another file name ?a. save as b. open c. new d. exit Select the correct answer from above options...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
    When did John Cabot land in New found land and claim it is as Canada and also From which country he belongs?...
asked Jan 27, 2021 in General by JackTerrance
0 votes
    In my macbook air terminal I wrote python eggshell.py but I got this error python: can't open ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    In which IDE we can interact with R? (a) R studio (b) Console (c) GCC (d) Power shell I had ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Select the ways to interact with ArangoDB database. (1)Aardvark (2)REST API (3)None of the options (4)Arangosh (5)All the options...
asked Aug 10, 2021 in Technology by JackTerrance
0 votes
    y = " \{ Hi\} {0} " print y.format(43) it's showing an error: Key Error: Hi\\ I want to print the output from the above syntax: {Hi} 43 Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Distinguish between butterfly and bat with the help of four distinguish properties. Select the correct ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    Which of the following can also be used to find new variables that are linear combinations of the original set ... and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    To open the table, on the icon that has the required table name in Tables Pane of Database Window (A) Drag ... click (D) Triple Click Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    runApp() will run the shiny and open the browser window. (a) True (b) False I had been asked ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    runApp() will run the shiny and open the browser window. (a) True (b) False...
asked Oct 5, 2021 in Technology by JackTerrance
...