Questions tagged as 'cmd'

1
answer

What is DelayedExpansion and why is it not enabled by default?

Generally when creating a batch that uses any block of code, such as loops for or if , we end up going through this problem and then we discover the need to set EnableDelayedExpansion . Codes like this generate errors at ea...
asked by 22.02.2017 / 13:48
1
answer

What is the best way to test ERRORLEVEL in batch?

I have already seen several ways to test ERRORLEVEL in batch scripts. Some of them are dangerous and others are wrong, but sometimes they go unnoticed. Here are some examples I know:    Dangerous: The test works as "greater than or equ...
asked by 10.03.2017 / 18:59
1
answer

How to run an R script from the WIndows command line?

I have a test.r file in the folder: C: \ Users \ Documents \ R And I already added the R in the windows PATH: C: \ Program Files \ R \ R-3.0.2 \ bin When in cmd I try the command R CMD teste.R Windows does not know which program to use...
asked by 22.02.2014 / 14:37
2
answers

ERRORLEVEL command with colors?

I created a script bat to tess some links, to using the command ping with errorlevel and it worked perfectly, but wanted that when I did not have communication, that is, did not dribble, it was of another color, red type. If...
asked by 04.12.2014 / 16:36
1
answer

Include task in Windows task scheduler via batch

I set up various types of backups by batch, the codes are not pertinent to this question, however what is difficult is to configure them by the Windows Task Scheduler. Is there a way to add these tasks by batch? I would like to be able to...
asked by 02.10.2017 / 17:08
0
answers

Send commands to a Batch with user input

   Context:   I have a Batch that I can not change , its function is to list some files in a specific directory, and after it lists the files it is waiting for some user command.       Problem:   I would like to automate this process, bu...
asked by 24.08.2015 / 17:33
2
answers

Simulate an "ok" via the command line

I have a command from the Windows prompt that disables proxy settings: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\" /v ProxyEnable /t REG_DWORD /d 0 /f Browsers on my system are configured to use my system set...
asked by 05.10.2017 / 21:34
2
answers

Windows CMD - Setar String with Accentuation

I'm trying to create a Batch (CMD) in Windows that "sweeps" folders in a certain directory and then renames the sub-folders according to a criteria I set. I'm using the code below to perform the operation (detail: this code I found on the int...
asked by 26.07.2016 / 14:01
1
answer

How to download images sequentially from a website using WGet?

I need to know where the error is in the command: wget http://shadowera.com/cards/se{001..200}.jpg I used the site "shadowera" for testing. I need to know how to save multiple images at once, so it is not working.     
asked by 25.04.2014 / 03:54
1
answer

Return File Name in Batch

Is it possible to return the name of a file / program for a bat? Type by dragging it to the bat or executed by the bat, it returns the name.     
asked by 12.09.2017 / 23:27