Click here to Skip to main content
15,881,559 members
Everything / Batch

Batch

batch

Great Reads

by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively
by Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.
by Reto70
if you want to run the script in the folder where the script is store you can add the following code@ECHO %0 %*@pushd@cd /D "%~dp0"@cd....@pause@popdin most case %0 is the name of the script including the full path%~dp0 is only the drive and the path of the scriptcd...

Latest Articles

by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
by ToughDev
How to identify used and unused resources in VS Project Resources.resx file
by FormerBIOSGuy
This article describes a set of batch, AWK, and PostScript files that together allow you to create personalized, 12-page PDF calendars for some year.
by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively

All Articles

Sort by Score

Batch 

20 Oct 2010 by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
1 Mar 2011 by Reto70
if you want to run the script in the folder where the script is store you can add the following code@ECHO %0 %*@pushd@cd /D "%~dp0"@cd....@pause@popdin most case %0 is the name of the script including the full path%~dp0 is only the drive and the path of the scriptcd...
20 Feb 2012 by yudi19872001
Batch file for deleting files automatically using ForFiles.exe.
12 Jun 2014 by Jani Mäkinen
Program return values inspected by .bat files with visual feedback
4 Mar 2017 by yuvalsol
Batch script that retrieves checked out and changed files from TFS and saves their paths to output file
3 Oct 2023 by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
7 Mar 2014 by Partha_sarathi_ghosh
Zip or Archive and delete old log files using Windows Task Scheduler in Winrar
1 Feb 2022 by Marijan Nikic
How to set AIP label via VBScript code
1 Mar 2011 by Br.Bill
First command of the file should be:PUSHD directory_you_want_to_be_inThat solves it always. No testing for anything. No need to error out, because your expected file's gonna be in the expected directory.
29 May 2013 by mpolaczyk
Public Key Auth - Why it's better than simple password and how to configure
28 Jun 2013 by _Asif_
This tip helps in creating User schema with fresh password on the fly
6 Jul 2015 by Mike Trank
Simple Daily SQL Server Database Backup Batch File
19 Aug 2020 by Tiago Cavalcante Trindade
How to put color in Python, C, C++, C#, Java and batch on the Windows console
5 Aug 2016 by Andy Uncle Frank
A simple batch code that can help you start your work day
4 Oct 2018 by Antagony
Schedule a task to run this script, which checks whether Windows has [re]connected to the specified router after startup, sleep, or hibernation – and attempt to connect if not.
1 Mar 2011 by Indivara
Are you sure your batch file will actually do what you intended?
23 Aug 2011 by Caner Korkmaz
Creating Your Own Command Prompt Like Visual Studio Command Prompt