bat

WHERE command for DOS

Thursday, August 23rd, 2007

If You need the analog of Unix ‘which’ command and do not have Resource Kit, the following batch file will help.
The code was found on www.ss64.com
Published with the permission of the author, Clay Calvert.
@echo off
SETLOCAL
(set WF=)
:: Look for file in the current directory
for %%a in (”" %PATHEXT:;= %) do (
if not defined WF if exist [...]

Start sqlplus in Windows .BAT script

Monday, February 6th, 2006

Here is the example of emulating “HERE-documents” in Windows shell.
@ECHO OFF
FIND “/*%none% some_label”

Keep on coding