Questions tagged as 'batch'

5
answers

Is there a sudo for Windows?

Normally it is easy to open a program / script .bat with elevation using the "Run as administrator" option of the right button. But what if I want to run something with elevation from cmd , a kind of sudo , how to?     
asked by 17.06.2014 / 16:52
4
answers

How to check if IP exists with bat

I can ping all network addresses with something like this: for /l %%x in (1, 1, 100) do ping 10.1.1.%%x However, not all addresses are valid, and in that case, it's timeout. Is there any way I can check if the IP exists, to only then ping i...
asked by 23.05.2017 / 16:17
3
answers

How to write commands in a console program through a batch file (.bat)?

I want to automate a routine through a .bat that calls a console program which, in turn, will receive successive commands from this .bat . This console program could be, for example, an ftp client. Example: c:> BaixarArquivo...
asked by 04.02.2014 / 13:52
3
answers

Create database on the server via mysql-workbench template (.mwb) via command line

I'm trying to build a bat to create the database in the mysql server from a mysql-workbench EER (.mwb) model, that is, in command line, is it possible to perform this process? Could someone give a light? Editing: Opening it in cmd I have...
asked by 02.06.2015 / 19:05
1
answer

What are the differences between .bat and .cmd?

We rarely see .cmd , but when we open it, we see that its contents are very close to .bat . What is the reason for this similarity? What would be the main differences between them?
asked by 05.04.2018 / 14:43
1
answer

.bat Settings that runs a .dstx

I'm running a .dtsx file using a load bat and I'm trying to make some adjustments: Manually set the file name date. Set in the log file to tell you the name of the .dtsx package that was run Decrease the code to insert date and time into...
asked by 17.02.2017 / 14:49
3
answers

How to handle accent in .bat files?

Good morning! I'm having a hard time copying a file from one folder to another with the copy command. I'm using UTF-8 Encoding, but cmd can not handle the accent to line below: copy "C:\SVN\Makro\Templates e Orientações operacionais - Te...
asked by 03.12.2015 / 13:41
2
answers

What is the difference between SET and SETX?

To fix a new environment variable in Windows I noticed that there are the SET and SETX commands. What is the exact difference between the two commands?     
asked by 20.02.2017 / 21:12
1
answer

Run Python file with arguments

In my program, I do the following operation: import sys qtd_ponts = int(sys.argv[1]) I would like to know a practical way to run this .py file by passing arguments without needing an IDE, for example .bat files.     
asked by 24.06.2015 / 12:22
2
answers

How to escape characters in Windows Batch?

I have the following script: start "" "https://site.com.br/app/index.jsf?username=nomecabuloso&token=tokenzera" However, when I run it, it is no more than index.jsf , it opens the following url: https://site.com.br/app/index.jsf...
asked by 12.09.2017 / 16:23