Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [batch-file]

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.

0
votes
1answer
24 views

Is it possible to Block An Application from Accessing the Internet with cmd?

Normally, I would use FireWall to Block An Application from Accessing the Internet. But I don't want to setup my FireWall system for just an application. What I want is: create an bat file to start ...
0
votes
0answers
11 views

how to set the date time right now as the new variable (batch file) [duplicate]

i know this is 2018 but i still interested at batch coding how to make a variable based on the time right now? if it only hour and minute thats more helps example set dateX=blabla what should i ...
1
vote
2answers
38 views

Windows Command line: Is there any way to check syntax of bat file without actually running it?

Windows Command line: [f/k/a DOS] Is there any way to check syntax of bat file without actually running it?
0
votes
0answers
19 views

Batch script for automatic password submition

I have a windows 10 computer and a very old laptop that I ran Ubuntu on. I often use that Ubuntu laptop but it's really old so mostly I connect to it via ssh and do my work in the terminal. It looks ...
0
votes
0answers
8 views

Use batch file to change ASUS Realtek settings

I want to use a batch file to change ASUS Realtek settings to auto switch instead of Front Panel for Amplifier settings. Essentially everytime I turn off my pc the setting gets reset and it's just ...
-1
votes
0answers
17 views

Using the data in column x I need to output the data in column account

I have a file.txt containing data separated with "|" I need to filter all the lines that only having "1" in columnx and print the value in the column "account" file.txt line|account|column3|columnx ...
2
votes
1answer
38 views

Need .bat that will make folder based on filename

I need .bat that will make folders based on filenames and put files inside. I have names formatted like this: string1 - string2 - string3 - string2 - string3_number.jpg I find out command that will ...
0
votes
1answer
34 views

Search and replace environment variable's value via batch file?

I want to create a batch file to quickly switch a PATH variable in order to be able to work in a different environment, and then another to restore it. I assume that it would be done via setx and some ...
0
votes
1answer
38 views

Batch Convert 50 Images (With The Same Audio File) To 50 Videos Using FFmpeg

I have 50 images with different names. In the same folder, I a names.txt file that contains the names of all the images in that folder, like so: apples.jpg oranges.jpg blackberries.jpg etc. And I ...
0
votes
0answers
10 views

Batch file - Reading scripts from a folder and execute using sqlcmd

I'm trying to create a batch file to execute all the scripts from a folder and print logs in a different folder and getting access id denied error. Below is my folder structure. Thanks in advance. ...
2
votes
1answer
49 views

Can be this batch file improved to include sub-folders?

I have these lines in a .bat file: @echo off pushd %* for %%j in (*) do type nul > "%%j" popd If I run it it changes all the file's sizes to 0, including the batch file. If I use it in CMD I can ...
0
votes
1answer
31 views

7-Zip: Automate script with excluding folder but include its content(set folder as root itself) in .cbr structure

When i use this script for /d %%X in (*) do "c:\Programs\7-Zip\7z.exe" a "%%X.cbr" "%%X\" in directory like this mainfolder comicfolder1 001.png 002.png comicfolder2 001.png 002....
0
votes
1answer
17 views

Windows CLI: sort text file by column

I'd like to sort a text file by the 3rd column of data, not the 3rd character, using pure Windows CLI commands. The commands would be put into a batch file. The data would look something like #...
-1
votes
1answer
20 views

Batch that lists files names in folder in txt file line by line [closed]

I need a batch file that will make list of files in directory of batch file, but must complete these requirements: -List can't contain record of that .bat -there will be hundreds to thousands files -...
-1
votes
0answers
37 views

Batch file that will uninstall a program with version based if it was installed on windows 10 64-bit or 32-bit

I do have a application installed on windows 10 machine. The application has Newer version (2.0) Older version(1.0) I did check the below links before raising question but they does not have the ...

15 30 50 per page