All Questions
374
questions
0
votes
2
answers
9k
views
How do I make a batch file recognize file extensions in For loop?
I'm trying to make a batch file, a newer one than the one I made last time, and I'm
planning to add to my previous program, for organize all of the respective images it
finds into folders ...
0
votes
0
answers
69
views
Bulk exif tags bat script not working peoperly
I have a batch script to set XMP:Subject Exif tags on pictures in bulk.
tags.txt has all links of the pages and the tags. Links and Tags are separated by =.
This script should divide the URL and Tags ...
0
votes
2
answers
646
views
How do I make a running and working batch file from a pre-made batch file?
So I am trying to make a batch file from a pre-made batch file and I don't know how to got to the next line in the file without ruining it and it just saying what I want the command to do. This is ...
0
votes
3
answers
1k
views
Confused about goto label (batch file) Windows
If I use these commands this way around, it does what it should:
If foo was previously set as one thing or another, it skips to foobar_menu
If foo was previously not set as (the same) one thing or ...
2
votes
1
answer
7k
views
Press ENTER in a program via .bat file
I want to start WhatsApp and send message with a .bat file. I will run this .bat file via another program. I haven't used a .bat file before so I don't know anything about it. I just wrote this :
...
4
votes
2
answers
8k
views
Prevent "Exit" command in script to close Cmd
I have a .bat which emits "Exit 1" in case of failure, this is closing the cmd window and prevents user to see the details of error.
I would like to force cmd to stay opened to see the ...
0
votes
0
answers
53
views
Access is denied in one folder but not in another
I had a number of files that were downloaded from the internet and they were in Folder A.
I tried to run a .bat file on them to rename them, but on every single file I got the error Access is denied.
...
0
votes
1
answer
1k
views
Batch File to recursively read File Name from directory and input to another command
I have one directory in Windows which has files with certain extensions. I want to read the File Names from the given directory with extension and provide to another command one by one. Below is my ...
0
votes
1
answer
82
views
Concatenating inside for loop
I am trying to create folders inside another folder using numbers. The code is below. Now I am checking with echo. But it is printing empty string.What is the mistake in it ? and how to achieve this?
...
0
votes
2
answers
2k
views
Batch rename multiple files by modification date
I got a bat script for rename files by their creation date but I need to adjust the code below to made to rename files by modification date.
@echo off
set Folder=%userprofile%\desktop\Images
For /f &...
1
vote
2
answers
27k
views
Error handling in Batch script when a batch script failed
I am trying to run a batch file via a batch script and when the batch file is failing I want to print an error as Sync failed if it passes I want to print a message as Sync success
So when my script ...
3
votes
1
answer
2k
views
.bat files not executing when double-clicked
When I click a .bat file it gives me a message: "How do you want to open this file?" .
I expect a batch file to run a cmd for me, so even when I click an option to open the file with cmd it ...
1
vote
1
answer
3k
views
A try to write a batch script to find all the .c files in the current directory and compile them
I was trying to write a make analog in windows, using batch files
But I am a noob in batch scripting, here is my try -
I am trying to make a batch script which fill find all the .c files in the ...
1
vote
1
answer
4k
views
End a process started with START command in a Windows Batch File
I have the following batch file, which uses ADB to monitor device logs and searches for a string:
@ECHO OFF
ECHO Starting log monitor...
START /B adb.exe logcat > log
:LOOP
(TYPE log | FIND "...
6
votes
2
answers
1k
views
What did I do wrong in my batch?
I would like to change the file extension from .jpg to .txt. This must happen both in the current folder and in all sub-folders. What did I do wrong in my batch?
for /R %%G IN (.) DO (rename *.jpg *....