Skip to main content

All Questions

Tagged with
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 ...
Joshua's user avatar
  • 99
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 ...
Attiq Haroon's user avatar
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 ...
mosqitoburito's user avatar
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 ...
bat_cmd's user avatar
  • 551
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 : ...
husamsdu's user avatar
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 ...
AFract's user avatar
  • 143
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. ...
Zero Pancakes's user avatar
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 ...
Arpit Gupta's user avatar
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? ...
prabhakaran's user avatar
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 &...
Mechanix2Go's user avatar
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 ...
Izaz's user avatar
  • 17
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 ...
Ugapiku's user avatar
  • 31
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 ...
armangrewal007's user avatar
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 "...
Tikolu's user avatar
  • 192
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 *....
claudio's user avatar
  • 61

15 30 50 per page
1
3 4
5
6 7
25