Command Prompt window closes from Windows batch script
I’m trying to make a Windows batch script, but the problem is that when the Google terminal loads, the Command Prompt window closes.
Move file and directory another path
@echo off setlocal enabledelayedexpansion rem Source directory set “sourceDir=C:pathtosourcedirectory” rem Destination directory set “destDir=C:pathtodestinationdirectory” :loop rem Change to the source directory cd /d “%sourceDir%” rem Loop through all files in the source directory for %%f in (*) do ( rem Get the file name without extension set “fileName=%%~nf” rem Check if the folder with the […]
How to print lines starting with semicolon using batch script?
I have the following file
How can I read a car manual on a disk that requirs internet exploer
I have a manufacture manual on a disk of my car but it needs windows explorer to run and view it.
So far, I was able to find a way to run internet explorer to run on my windows 10 computer.
Backslash causes errors on variables
If I try setting a variable that has a backslash it causes an error.
Create batch files based on file names
I have a large amount of folders with files which I want to create batch files for. Batch files for the individual files and 1 batch file based on all files in 1 folder.
Batch Script start Command Ignoring Quotation Marks
I am attempting to make a script in batch (with the help of chatGPT for syntax) to compile C++ programs for me using the VS2022 compiler, and so far my batch script can successfully locate and compile .cpp files, but can’t run them for some reason.
If Statement Echoing Out Even Though @echo off and With >nul and2>nul
I will start by saying that I am very inexperienced with Batch, and therefore am reliant on chatGPT to figure out some syntax, but it seems that chatGPT cannot solve the problem I’m having.
Passing value of variable to a command in a batch script file
I want to run the kubefwd.exe
command in order to port forward to some services on a given environment. Currently, I have the following script:
how to convert or get persian date in a batchfile
I use of this code for change date format to yyyymmdd and its work completly true
now my problem is I want to change it to persian date (Shamsi calendar) or get persian date directly with my batch file
i use this code