Questions tagged as 'batch'

1
answer

Remove text with delimiter from a .txt and save it in a variable (Batch Windows)

Good to all the problem in itself is that I need to remove the ip from this line and save it in a variable ( only the IP 4 octets, it could be that ip or one like 192.168.100.2). I have the following file .bat; @echo off echo...
asked by 24.05.2018 / 13:11
1
answer

Autocomplete content in a text document with cmd.exe

I have the following temp.txt with these contents: 01. título a.flac 02. título b.flac 03. título c.flac I convert to the following metaflac.txt template: metaflac --set-tag=TITLE="" --set-tag=TRACKNUMBER= "01. título a.flac" meta...
asked by 22.05.2018 / 14:27
0
answers

Place attribute to see hidden in subfolders of bat

can this script be placed to review all the subfolders and remove the hidden attribute?   this is what I have for a bat attrib /s/d -r -a -h -s C:\Temporal_BackUps\*     
asked by 23.05.2018 / 19:29
1
answer

batch ftp windows server

good afternoon. I need your help regarding a batch file that I run without problems in windows 10, but when you deploy it in windows server 2016 it does not work 100%. The functionality is as follows, I connect to an ftp server and download w...
asked by 10.05.2018 / 22:22
0
answers

Open Firefox browser on different screens with batch script

I have a computer which is connected with two screens I would like to raise firefox with a script (.bat) and that I see a page on one screen and another page on the other screen. In chrome I found this solution: @echo off start chrome --use...
asked by 20.04.2018 / 22:35
1
answer

Declare a variable with the contents of a file

In my batch script I am having the user enter a location to copy files using copy con location.tmp , I want to save the content of location.tmp , I have tried with set /a instdir=location.tmp and set instdir=location.tmp...
asked by 13.04.2018 / 22:39
1
answer

error when executing bat from a program in c #

Good I have the following bat, that I execute directly and it works without problems: FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment" /v CurrentVersion') DO set CurVer=%%B FOR /F "skip=2 tokens=2*...
asked by 24.03.2018 / 22:55
1
answer

How to create a Direct Access to an FTP address with a bat file (or VB.NET code)?

What I want to do is a direct access to an FTP site, for users to run the .Bat and automatically create Direct Access on their desktops and open the FTP site with Windows Explorer. I hope you can help me. Edit: I can also use a code in VB....
asked by 03.02.2018 / 00:28
0
answers

How to disable contextual menu within cmd?

Look what happens is that you create a .bat that creates a contextual menu activated by the right click, but in doing so the typical menu comes out ... Complicating things I need QUICK EDIT to DEACTIVATE because if it is not, the .ba...
asked by 26.01.2018 / 19:17
2
answers

How can I kill a process by its name using batch?

Hello my question is simple as I could do using batch to kill a process only by its name not by its pid or process id, only its name. I would have to use taskkill / m and the process. but in my case I would not be worth the pid but the name....
asked by 28.12.2017 / 18:46