|Yes, notepad, clipbrd, any "plain text" editor. You could cut/paste the code from my post to avoid typos etc.|
Here's the batch that uses vbscript, save it as whatever.BAT:
::===== begin batch
@echo off & setlocal
for %%a in (%cd%) do set dir=%%~na
for %%f in (*.php) do find /i "$season =" <%%f >nul && cscript season.vbs %%f %dir%
::===== end batch
Then you also need to cut/save the vbscript as SEASON.VBS (unless you want some other name, but just make sure the batchscript uses the same name as the vbs). Like I said, these are designed to run from the "working" directory.
ps: while I'm at it, i guess I'll go ahead and make a stand-alone vbs:
'===== begin vbscript SEASON2.VBS
for each file in folder.files
if p>0 then x=lcase(mid(n,p+1)) else x=""
if x="php" then
p=instr(lcase(c),"$season = ")
if p>0 then
'===== end vbscript
but it's not tested. Probably just go with what we already had to avoid confusion.