A batch file is a text file containing a series of commands that are executed by the command interpreter on MS-DOS, IBM OS/2, or Microsoft Windows systems.

learn more…| top users | synonyms (9)

0
votes
2answers
35 views

Create A to Z subfolders from a main folder which comprises of thousands of files

Main folder contents (example)apple.txtart.txtberry.txtcherry.txtcoffee.txt..,......zebra.txtExpected output (subfolders)Aapple.txtart.txtBberry.txtCcherry.txtcoffee.txt...
1
vote
0answers
23 views

cant set variable in windows batch for loop [duplicate]

In a for loop reading a file line by line i would like to store the input parameter in a variable. In the below example I have reproduced the problem. I try to store %%a to a variable text but the ...
1
vote
1answer
22 views

Windows batch files not running completely when double clicking

I see this question has been asked from time to time, but no answer has been given which solves the problem for me.The following batch reproduces the problem@echo offsleep 2dir /s /b > ...
1
vote
0answers
31 views

maximum setlocal recursion level reached

I am very very newbie to coding though I'm trying to learn and accomplish a automation batch script for my project. So the code below is working flawlessly, but after some time I am getting that"...
0
votes
0answers
23 views

netsh command works fine in CMD but not in batch file [on hold]

I'm trying to make a batfile to open up som firewall ports with netsh.I need it to run through a batch file since I am doing several setups.What I'm trying to run is the followingnetsh ...
1
vote
1answer
38 views

.Bat file with date and time in one line [duplicate]

I have a search for an easy answer but not found it. I have a script that works fine however i would like to add time but it wont give me the result i would like .copy "C:\Temp\ok.txt" "C:\Temp\%...
1
vote
1answer
32 views

How to update xml file parameter using .bat file?

I am new to windows batch programming.I have the below XML file <itp:params><!--1 or more repetitions:--><itp:param name="persid">PERSID__</itp:param><itp:param ...
1
vote
1answer
34 views

error in return codes used in batch (when DLL not present)

I am having a strange error and I don't know what could be causing itI have a very simple console application with a try-catch static int Main(){int returncode=0;try{//...
0
votes
1answer
20 views

copy text from url with a batch file

I was wondering if there's anyway to copy the content of a raw pastebin page to batch :example :https://pastebin.com/raw/J5xb0eUXthen use the echo command to display it
1
vote
1answer
33 views

.bat file renaming folders, changing first letter of every word to uppercase

From C:\x\adrenaline_-_shut_the_fug_up_and_dance-2000to C:\x\Adrenaline_-_Shut_The_Fug_Up_And_Dance-2000I had this code but it capitalize every single letter instead@echo offsetlocal ...
0
votes
0answers
24 views

Batch script doesn't work when I open a file with it [duplicate]

I decided to make a batch file that encrypts files using OpenSSL's AES-256-CBC.I made it so that the first argument is the file path to be encrypted.The batch file then copies the file and ...
0
votes
1answer
17 views

Running a Batch File that Checks for a Process if not running Run a batch file Windows 10

Windows 10 I can't seem to get the batch file to activate the second batch file if the process is not running. First part works fine, calling the second batch file is broken. I tried to call, I tried %...
0
votes
0answers
25 views

Deleting Drivers Via .bat

I am attempting to create a bat file which resolves the common problem where windows 10 laptop stops recognizing the battery and won't charge.I found the easiest fix for this is to simply uninstall "...
0
votes
1answer
18 views

The process cannot access the file because it is being used by another process. Batch file error on csv filtering

I was trying to write what I thought was a pretty simple batch file that took an existing output as csv and using the comma as a delimiter, it would then write me a csv with the data I needed in the ...
-1
votes
1answer
30 views

Assigning a variable with the contents of a file

Does anyone know how to assign to a variable (from a batch /fisier.bat script) the contents of another file (file.txt). -CMD Windows

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,