Questions tagged as 'batch'

2
answers

Operations with dates

It's been a long time since I moved with VBS , so I thought of doing only command line, I'm going to delete files from 6 months ago, as the files I'm managing have names on the basis of date that were generated: bkp_201605.xml log_201601.t...
asked by 08.03.2018 / 01:05
1
answer

How to run a script without worrying about special characters?

I made a batch for windows to install some programs and make settings automatically, it worked normally, but when doing a test using a folder that had space in its name it stopped working, put it in the variable "" and returned to normal . Bu...
asked by 25.09.2017 / 14:46
2
answers

How to delete files in a directory with batch script?

I need to run a script.cmd to delete all files with the following extensions: .txt and .mp4 if they exist. These files are located in the following C:\comando\batch\diretorio\teste folder and script.cmd is located at C:\coman...
asked by 23.10.2016 / 06:16
2
answers

Batch to find service with special character

I'm trying to make a batch to connect a Windows service that has a special character "Ç", but I could not get into any viable code. I always get the 1060 error. This is more or less the structure of my bat: SC QUERY "Serviço Bonjour" > N...
asked by 13.10.2015 / 15:22
1
answer

Set Space for Text

Good afternoon, I would like to know if there is any cmd command to set a fixed space for the text, so that it does not change the position of the rest of the sentence. In the example below, this space is the * ㅤ ㅤ ㅤ * My name is * Carlos...
asked by 18.10.2018 / 18:17
3
answers

script for printer installation automation

Good afternoon, I have in my environment a print server with a total of 63 printers installed and shared on the network, I would like a script to automate the installation of these printers on the machines of the company, so far I have done the...
asked by 15.05.2018 / 21:24
1
answer

Delayed expansion in the body of the loop is by using the / f option

I reduced the code to be brief: @echo off setlocal EnableDelayedExpansion set /a n_tokens=2 for /f "tokens=!n_tokens! delims=\" %%s in ("Program\Executable") do ( echo %%s ) pause > nul I know that in this context it would not b...
asked by 30.08.2017 / 02:08
1
answer

Open an executable file using VB or CMD

How to open a file of any extension, such as - Paçoca.legalcara in an executable like - algo.exe using CMD or VB ? Note: The path must be relative, which means that everyone is in the same folder     
asked by 26.06.2015 / 01:27
2
answers

Bat to enable and disable proxy

I need a bat to activate and deactivate proxy already with the set ips can anyone help me? To activate use the following command: REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_...
asked by 23.01.2015 / 12:45
1
answer

Get font name in .bat

I'm using the script below to install fonts in Windows, but I wonder if there is a way to get the font name from the font. For example, the source file name is BebasNeue.otf , but the name of the face is Bebas Neue (OpenType) . How...
asked by 06.11.2014 / 10:38