Search found 6 matches

by _m
26 Feb 2009 21:58
Forum: DOS Batch Forum
Topic: Replace a substring using Set command
Replies: 5
Views: 6505

Code: Select all

set str=simple equation x=2
echo.%str%
set str=%str:x=y%
set str=%str:2=3%
echo.%str%
by _m
25 Feb 2009 14:11
Forum: DOS Batch Forum
Topic: Need a Bat file
Replies: 2
Views: 2928

Code: Select all

@>File.txt IPCONFIG /ALL
by _m
24 Feb 2009 12:19
Forum: DOS Batch Forum
Topic: .Bat file to kill processes upon confirmation
Replies: 4
Views: 4101

@ECHO OFF :START CLS TASKLIST ECHO. ECHO.1. Refresh ECHO.2. End Process ECHO. ECHO.0. Exit ECHO. SET /P "OPTION=> " IF [%OPTION%] EQU [2] (GOTO:END) IF [%OPTION%] EQU [1] (GOTO:START) IF [%OPTION%] EQU [0] (EXIT) GOTO:START :END ECHO. SET /P "PROCESS=Process N...
by _m
23 Feb 2009 14:34
Forum: DOS Batch Forum
Topic: Batch File Help Need: Zip all files before the current date.
Replies: 2
Views: 3139

You could use: FOR /F "DELIMS=" %%$ IN ('DIR LOG*.CSV') DO ( IF /I [%%$] NEQ [LOG%DATE:/=%.CSV] ZIP -a %%$ ZIPFILE ) Instead of: Set "WD=%Date%" Set "dMM=%WD:~0,2%" Set "dDD=%WD:~3,2%" Set "dYY=%WD:~6,4%" Set "dYY2=%WD:~8,2%"...
by _m
28 Jan 2009 20:00
Forum: DOS Batch Forum
Topic: favorites menu style batch? good read.
Replies: 1
Views: 3005

@ECHO OFF :START CLS ECHO.1. Google ECHO.2. 3 Ethical Hackers ECHO.3. Metacafe ECHO.4. YouTube ECHO.5. Battle.net Website ECHO.6. Guitar Tabs ECHO. ECHO.0. Exit ECHO. (SET OPTION=) (SET /P OPTION="> ") IF NOT DEFINED OPTION (GOTO:START) FOR /L %%A IN (0,1,6)...
by _m
27 Jan 2009 11:08
Forum: DOS Batch Forum
Topic: [tmp]
Replies: 1
Views: 2738

[tmp]

Edited