Questions tagged as 'cmd'

1
answer

Disadvantage with conditional nests in Bat

I need to create a program that takes the current date and if that date is between the 10th and the 20th of the month, print the date of the last month in YYYYMM format (that is, month -1). The code I made is the following: @echo off &s...
asked by 19.07.2016 / 21:48
1
answer

Execute a CMD command with administrator privileges from Java

For a final project, I need to create my own hotspot, using a Java application developed by me, but to execute the CMD command I need administrator privileges, but as I could do it from Java This is the code I'm using to execute the CMD comma...
asked by 05.12.2018 / 03:27
1
answer

Exercising windows command as administrator from PHP

I have to run the following command as an administrator from PHP: $salida="sintaxis\insertarlo.exe sintaxis\sumar.cpp"; $respuesta=array(); $estado; exec($salida,$respuesta,$estado); but apparently as it is an .exe you need the command to r...
asked by 31.08.2018 / 00:28
0
answers

Create dll library in C # and use it in a C project

I tell you that I'm doing a project in LabWindows / CVI 2012 which is an ANSI C development environment, where a couple of days ago I've been trying to execute command lines in windows to boot the bootloader in an ATMEGA328P, and they suggested...
asked by 24.07.2018 / 16:01
1
answer

How to pass or return a .VBS variable called from .BAT

I have a script in cmd that calls a vbs script, which executes a series of operations and generates an array that I'm interested in being able to return to the cmd script, I was wondering if this is possible and if so, how could do it. The me...
asked by 17.08.2018 / 12:56
1
answer

Open and close files from .bat file

With the following .bat I can open a text document and make it close in a few seconds: @ECHO OFF START "" notepad.exe "%USERPROFILE%\Desktop\Documento de texto.txt" TIMEOUT /T 5 > NUL TASKKILL /IM notepad.exe PAUSE EXIT How c...
asked by 26.06.2018 / 19:16
0
answers

Aria2 exclude file extensions in txt

Is there a way to exclude file types in a txt listing? As for example images (jpg, png, gif, etc). Would it also be possible to exclude domains? The command I'm using to download all the URLs of a txt file is: $ aria2-1.33.1-win-32bit-build...
asked by 04.05.2018 / 14:11
2
answers

CMD - Skip login when connecting via FTP

I have the following script.bat that asks me to enter the username and password despite having specified it in the code. What have I done wrong? I want you to identify yourself automatically, just execute the bat you have to do everything. ftp...
asked by 24.04.2018 / 10:21
1
answer

Execute a cmd command from a Java program

Hi, I am trying to run a .bat from java, that has a command and must create a file with the output, the .bat works correctly, the problem I have when invoking it from the java program since it does not wait for it to finish and my file is create...
asked by 18.02.2018 / 12:03
5
answers

Execute command together with file in a .bat file

I am trying to create a .bat file to be able to boot the gulp system that I have. What I do so far is open a DOS console, go to the path 'D: \ my_project \ gulp \ bin' then run the command 'gulp.js serve' and it starts with it. I want to a...
asked by 19.02.2018 / 12:44