need a batch file to edit vbs file

Microsoft Windows server 2008 standard -...
June 10, 2010 at 02:30:55
Specs: Windows XP
have 1 vbs file in windows/system32 folder. i need to edit this file need to add 1 line in it at top of page "on error resume next".

can any 1 tell me code for batch file. When i will run this batch file it will search that particular vbs file n add the above line.

need urgently plz help


See More: need a batch file to edit vbs file

Report •

June 10, 2010 at 02:51:27
not tested
@echo off & setLocal EnableDELAYedeXpansion

pushd c:\windows\system32
> newfile echo.on error resume next

for /f "tokens=* delims= " %%a in (my.vbs) do (
>> newfile echo.%%a
move /y newfile my.vbs

Helping others achieve escape felicity


Report •
Related Solutions

Ask Question