0 Members and 1 Guest are viewing this topic.
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
cscript FixUsers.vbs "C:\Program Files\RoboMX\Plugins\UserGroups.xml" "∗" "*"
<out type="push" extdata="linetowrite"><operator type="strrep" nvalue="$lineasread$" lvalue="∗" rvalue="*"/></out>
Metis 2.80 Beta 1 Modified 4 B&M 13-05-2007*************************- Fixed invalid argument with the command /mxc load Metis 2.80 Beta 1 Modified 3 B&M 12-05-2007*************************- Fixed command OnRename- Added one option to disable the use of XmlEntities in memory usage in file MXC.xml :<DisableXmlEntities value="1"/>if value = 1 XmlEntities in Memory are disabled if value = 0 XmlEntities in Memory are enabled ( Default )