cmd

How do I automate cmd commands to run flask server

How do I automate cmd commands to run flask server Question: Every time I start working on my Flask project I need to run these commands in cmd: cd myproject venvscriptsactivate set FLASK_APP=project set FLASK_ENV=development flask run –host=0.0.0.0 Is there a way to make a batch file that would execute these commands? Asked By: iheb …

Total answers: 2

Run command in CMD via python and extract the data

Run command in CMD via python and extract the data Question: I am trying to use the below code to run a command and extract the data from the cmd. the file with the commands and data is a txt file. (let me know if I should change it or use an excel if better). …

Total answers: 2

Create a script to read a line in excel and place on CMD

Create a script to read a line in excel and place on CMD Question: Soo, i’m a IT Intern in a Company, and we need to transfer some data from a server to another by CMD commands like: "C:/Source" "D:/Target" /commands …. And we are doing that to move from a old server to a …

Total answers: 1

How to make a GUI for command-line application in Python?

How to make a GUI for command-line application in Python? Question: I am trying to make a command-line application using Python. I have developed the program, but I see that my program gets executed in cmd.exe, which seems to be the default for that kind of programs. But I would like a finer GUI, like …

Total answers: 1

how to install matplotlib using pip in cmd

`ValueError: check_hostname requires server_hostname` occurs when installing matplotlib using pip Question: Some erros returned when I tried to install matplotlib in cmd. Version of pip is 21.2.3. Version of python is 3.10.0 I also tried to install it in pycharm.But failed again. I don’t know how to solve this problem. This is my command in …

Total answers: 1

os.popen strange codec issue

os.popen strange codec issue Question: So im trying to use os.popen to run cmd comands, but the problem is that most of the comands have cyrillic characters in them that seem to have some issues with os.popen. When i use this code import os stream = os.popen("dir") output = stream.read() print(output) I get output like …

Total answers: 1