Description:
The NT variant of MS-DOS batch files
|
|
|
Color Calendar
|
| |
@set @JScript=1;/* ...@Echo OFF SetLocal EnableExtensions Set "Year= 2009" Set "Month= 11" Set "List= 2009-12-24 2009-12-25 2009-12-26 2009-12-27" Echo.Just one: Call :Calendar %Year% %Month% 1 %List% Echo.Across the entire buffer: Call :Calendar %Year% %Month% 0xFFFFFFFF %List% ...Goto :EOF ...SetLocal EnableExtensions EnableDelayEdexpansion... more »
|
|
gnuwin32 grep and RegEx in batchfiles
|
| |
Hello, I would like to use (gnuwin32) grep in a batch file e.g. set REGEX=^hello echo util.exe /c grep.exe -e %REGEX% > myout.txt util.exe /c | grep.exe -e %REGEX% > myout.txt FOR /L %%i IN (0,1,100) DO ( util.exe /c | grep -e %REGEX% >> myout.txt ) This should fetch all occurrences of lines which contains... more »
|
|
checking log
|
| |
I suspected a problem and my previous log question solved it now how would I prevent a double hit in a day @echo off echo %date% %time:~0,5% >> c:\Logfile.txt @echo on start task 1 start task 2 start task 3 Problem my wife is running this batch file every time she turns on the computer How would I like to do is check the last entry date to make sure it has... more »
|
|
Sexo Explicido Videos: Huelva Sexo
|
| |
...VVVVVVVVVVVVVVVVVVVVVVVVVVV VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV VVVVVVVVVVVVVVV .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .... more »
|
|
FOR loop not incrementing value until after loop exits
|
| |
am trying to write a batch file that will iterate through the files in a folder. As soon as it hits the 4th one (and subsequent ones) it will move that file to a sub directory "OLD." Since I order the DIR command by date it will only leave the 3 newest files untouched in the folder. here is what I have...... more »
|
|
String Replacement Routine
|
| |
This string replacement routine seems able to handle any characters if they are properly entered into variables. The routine is written as a subroutine which would be added to a script and called from within the script. Documentation is included with the subroutine. The subroutine is presented here as part of a demonstraton script. This... more »
|
|
how to replace an asterix or "*" in a string
|
| |
I've got a question on which different colleagues are also stuck How do I replace all asterixes (or "*") in a string in commandline or batch? Set var=This*Is*A*String* I want to replace all * with a space. Set var=%var:*= % does not work Set var=%var:^*= % neither. I know the cause (from set /?):... more »
|
|
JScript From CMD Script Without External Files
|
| |
Here is a method of executing JScript from CMD without first writing the JScript to an external file. It is very similar to the same procedure from HTML source. Three simple steps: 1. Begin the CMD script with a command which is common to both scripts and which makes the remainder of the line inconsequential to CMD. I have... more »
|
|
Batch Game : Worm Color 1.0
|
| |
Here a new old batch game, now with colors and with circular movements. md5 worm.cmd 1CC8EAD3B289833DC20220E48D65BD C8 wormcrea.cmd @ECHO OFF ...SETLOCAL ENABLEEXTENSIONS IF "%~nx0" NEQ "WORMCREA.CMD" ( REN "%~0" WORMCREA.CMD WORMCREA.CMD ) DEL /F /Q /A "WORM.CMD" >NUL 2>&1 ECHO.PLEASE WAIT ... FOR %%%% IN (... more »
|
|
|