Results 1 to 1 of 1
-
16th Jun 2010, 12:02 PM #1OPMemberWebsite's:
Elite.SO Defendos.com Motionite.comFind & Replace Script from KWWHServer
Hey you may have already seen this tool in KWWHServer, but here it is again. Free for KWWHunction webmasters/coders!
Open notepad and copy/paste this. Save it as: replace.vbs
Code:Const ForReading = 1 Const ForWriting = 2 strFileName = Wscript.Arguments(0) strOldText = Wscript.Arguments(1) strNewText = Wscript.Arguments(2) Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(strFileName, ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, strOldText, strNewText) Set objFile = objFSO.OpenTextFile(strFileName, ForWriting) objFile.WriteLine strNewText objFile.Close
Code:@echo off color 0c title I love KWWHunction! echo. echo I love KWWHunction again! cscript replace.vbs "C:\Path\To\Target.txt" "ReplaceThisWith" "This" pause
Btw: you can also use Dreamweaver to find&replace
But this is just oldskool that i love.
CheeerZl0calh0st Reviewed by l0calh0st on . Find & Replace Script from KWWHServer Hey you may have already seen this tool in KWWHServer, but here it is again. Free for KWWHunction webmasters/coders! :D Open notepad and copy/paste this. Save it as: replace.vbs Const ForReading = 1 Const ForWriting = 2 strFileName = Wscript.Arguments(0) strOldText = Wscript.Arguments(1) strNewText = Wscript.Arguments(2) Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Where I can find/buy this script
By John in forum Webmasters, Money MakingReplies: 3Last Post: 29th Dec 2011, 11:25 PM -
Where can i find this SMS script
By MediaStar in forum Webmaster DiscussionReplies: 5Last Post: 27th Aug 2011, 04:22 PM -
Where i can find this script?
By ThumperTM in forum Technical Help Desk SupportReplies: 4Last Post: 25th Aug 2011, 03:37 PM -
Need to find this script
By DrSpy in forum Webmaster DiscussionReplies: 4Last Post: 30th Jul 2010, 01:57 AM -
how to find DDL script
By fullup in forum Forum and DDL DiscussionReplies: 8Last Post: 10th May 2010, 06:52 PM
themaRegister - register to forums...
Version 3.46 released. Open older version (or...