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.

How to ftp with a batch file?

I want a batch file to ftp to a server, read out a text file, and disconnect. The server requires …

windows batch-file ftp
string comparison in batch file

How do we compare strings which got space and special chars in batch file? I am trying: if %DevEnvDir% == "C:\…

windows batch-file
How to echo with different colors in the Windows command line

I know that the color bf command sets the colors of the whole command line window but I wanted to …

windows batch-file command-line colors
Way to run Excel macros from command line or batch file?

I have an Excel VBA macro which I need to run when accessing the file from a batch file, but …

excel vba batch-file command-line
Executing multiple commands from a Windows cmd script

I'm trying to write a Windows cmd script to perform several tasks in series. However, it always stops after the …

windows batch-file scripting cmd
Open a Web Page in a Windows Batch FIle

I have a batch file that does a bunch of things and at the end needs to open up a …

windows batch-file cmd shellexecute
Split text file into smaller multiple text file using command line

I have multiple text file with about 100,000 lines and I want to split them into smaller text files of 5000 lines …

batch-file split command cygwin text-files
How to skip "are you sure Y/N" when deleting files in batch files

I can't for the life of me remember how to bypass the annoying prompt are you sure? Y/N when …

windows batch-file cmd
Batch Script to Run as Administrator

I'm writing a client/server checking program but it needs to run as Administrator. I want this to run silently …

batch-file administrator runas
How do I make a batch file terminate upon encountering an error?

I have a batch file that's calling the same executable over and over with different parameters. How do I make …

batch-file