Top "Batch-file" questions

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.

Set a path variable with spaces in the path in a Windows .cmd file or batch file

I'm new to script writing and can't get this one to work. I could if I moved the files to …

batch-file path variables cmd space
Batch files: How to read a file?

How you can read a file (text or binary) from a batch file? There is a way to read it …

file batch-file
Get list of passed arguments in Windows batch script (.bat)

I'd like to find a Windows batch counterpart to Bash's $@ that holds a list of all arguments passed into a …

windows batch-file
Batch file: Find if substring is in string (not in a file)

In a batch file, I have a string abcdefg. I want to check if bcd is in the string. Unfortunately …

windows batch-file cmd substring
copying all contents of folder to another folder using batch file?

I have a folder in C:\Folder1 I want to copy all the contents of Folder1 to another location, D:\…

windows batch-file copy directory
How to run a PowerShell script without displaying a window?

How is it possible to run a PowerShell script without displaying a window or any other sign to the user? …

windows powershell scripting batch-file silent
While loop in batch

Here is what I want, inside the BACKUPDIR, I want to execute cscript /nologo c:\deletefile.vbs %BACKUPDIR% until number …

windows batch-file for-loop while-loop
How to overwrite existing files in batch?

The following command copies and moves a file but I also need it to overwrite the file it's replacing. xcopy /…

batch-file overwrite
"npm config set registry https://registry.npmjs.org/" is not working in windows bat file

I create a.bat on windows 7, the content of a.bat is: @echo off npm config set registry https://registry.…

node.js batch-file npm
Checking if a folder exists using a .bat file

I would like to be able to check if a certain folder (FolderA) exists and if so, for a message …

windows batch-file