Questions tagged as 'cmd'

1
answer

Batch file to create another batch file

Is it possible for a batch file (EXAMPLE1.bat) to create another batch file (EXAMPLE2.bat) already programmed? Where I determine the programming of EXAMPLE2.bat within EXAMPLE1.bat.     
asked by 10.12.2017 / 11:01
1
answer

My code builds always incorporate Python 2.7 instead of 3.6, how to solve?

When I create programs executables I have suffered with this, and if anyone knows how to help, I thank you. Follow the command line that I usually use to build at the prompt.    python 'filename' .py build     
asked by 10.10.2017 / 01:55
2
answers

Network Configuration via prompt

How do I disable the "Use automatic configuration script" checkboxes and also "Do not use proxy server for local addresses"? To disable the proxy, I am using the command: "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /...
asked by 26.09.2017 / 16:05
1
answer

Error in adb.exe when running "ionic cordova run android --device"

I'm trying to run my app on my phone and it gives this error: Until yesterday it was working and had already tested on the cell phone several times. When I updated the ionic it started to appear this adb.exe message. I have everythin...
asked by 14.07.2017 / 15:17
2
answers

Assign directory of a searched file to a CMD variable

In batch I can search a file with the following command: C:\>DIR /S /B PROGRAMA.EXE And if the file is found it will return like this:    C: \ Users \ Dev \ Desktop \ Program.exe I would like to be able to get in the result only t...
asked by 27.01.2017 / 20:22
2
answers

A .bat file that changes the background color according to the number that the user typed [duplicate]

The code below should change the background color after the user types a number from 0 to 7, but the program closes shortly after the user types the number and does not change the color. I'm using the win7 cmd. @ECHO OFF SET /p num=Digite...
asked by 25.02.2017 / 15:22
1
answer

Problems with accentuation - Python

Hello, I have problems with accentuation in Python. In the code I put this: # - - coding: UTF-8 - - But the accents are not recognized in cmd. Follow the print for better understanding. Thanks in advance!     
asked by 20.11.2016 / 01:09
1
answer

Removing folders from a directory

I have a project in Delphi 2010 in which I use to compress and create backups of WinRAR, through the following code I can compress the following folder teste3 : AFile := 'C:\teste1\teste2\teste3'; LocateFile := 'C:\Users\Desktop\BACKUPS\...
asked by 21.10.2016 / 11:22
1
answer

Move and Del batch commands are not working

@echo OFF mkdir saida sort %1 > cadperfiSorted 2>> saida\error.txt start MAKEOPEACER5.jar cadperfiSorted del cadperfiSorted //OPEACER5 é um arquivo gerado pelo .jar move OPEACER5 saida This is the script I'm trying to run. Everyth...
asked by 30.01.2016 / 00:49
1
answer

How to make it redirect

I made a C # application, in addition to performing the basic functions, I want to be able to run with batch scripts, but the problem is that I run Console.WriteLine and it does not write anything in the CMD window. using System; usin...
asked by 17.12.2015 / 12:46