Questions tagged as 'cmd'

1
answer

Generate error at the end of the copy if any files are not copied

I have a batch that copies some files on the network, this copy updates the previous files to the newest cases if they already exist in the destination folder, but if any files are in use the system does not display the error message in the end...
asked by 07.06.2017 / 15:22
1
answer

How to fix CMD accent error?

I'm having trouble displaying messages in cmd because the same ones when marked appear disfigured. This occurs in any language I use (C, C ++, .bat, etc). For example instead of: minha multiplicação é : Appears: Minha multiplica...
asked by 23.08.2016 / 14:04
1
answer

Problems executing commands in CMD with Python

I am not able to execute (or get the result) of commands executed in Windows by Python. I got a code sample I saw on various sites and answers in the OS, but none worked well for me. import subprocess # Exception: [WinError 2] The system cann...
asked by 25.08.2016 / 23:09
2
answers

Making cmd slower

Is there any command for cmd to run a program that I run from the compiler? I would like to Debug what I did, and as I often fall into an infinite loop, I want to know if I can do cmd run slower (much slower) so I can see at what p...
asked by 14.06.2015 / 01:13
2
answers

How to run all files inside a folder

I have a folder with several audio files and I want the cmd code to run all of them, one at a time. Anyone have an idea if this is possible and if so, how do you do it?     
asked by 05.08.2014 / 13:03
1
answer

Insert Command Line in typescript

I have a MongoDB installation and configuration script as needed by the company. Install_MongoDB.BAT But I would like to automate this process by including in the project in TypeScript. I would like to insert commands that I created in .ba...
asked by 04.12.2018 / 22:15
1
answer

How to declare a variable in .BAT ("shell")? [closed]

I'm starting to mess with .BAT file, and created a command line. Example: ping <nome do computador> Below it would show me if it is online, it would look like this: ping computador_1 ButIwantedtoputthenameofthePCorIPintoavariabl...
asked by 25.10.2018 / 14:21
1
answer

pass input when executing bat

Good afternoon, I have a .bat to run a python file, it needs to receive an entry, but I can not run this input when running .bat, does anyone know how to do it? follows bat information: cd C:\Users\Jonathan Pereira\Desktop\ProjetoIruan\Robo...
asked by 26.09.2018 / 19:54
1
answer

Return Result of an IF executed by the Command Prompt (CMD) in C #

Hello, I'm trying to get a return from an IF line of the Command Prompt (CMD) with Visual Studio 2015 in C #, but I'm not getting it. The following code executes the CMD, inserts the directory path containing a C ++ (.cpp) file, and using the...
asked by 29.08.2018 / 14:59
1
answer

Use call only on batch files that contain expressions from another file

I have a directory with randomly named .bat files inside every .bat file in this directory I have unique names like: name1 name2 name3 ... I also have, within the same directory, a just.txt file. In this file, each line is a nam...
asked by 26.06.2018 / 01:42