Hi,
Can you help me how to call two lines from VB Script and give the same in .bat file as input.
Here is my VB SCript code..
---------------------------------------------------------------------------------------
Set oShell = CreateObject( "WScript.Shell" )
Set ObjFSO= CreateObject("Scripting.FileSystemObject")
Str1="Version=3.1016.0.0"
Str2="Version=3.1017.0.0"
Getxml1 = "D:\BuildShare\CMS_Maternity\lorenzo tranche2\maternity\webclient\wizard\lorappmaternityslui.web\moduleconfig\modulecatalog.xml"
Set objFile = objFSO.OpenTextFile(Getxml1, 1)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText,Str1,Str2)
Set objFile = objFSO.OpenTextFile(Getxml1, 2)
objFile.WriteLine strNewText
objFile.Close
Getxml2 = "D:\BuildShare\CMS_Maternity\lorenzo tranche2\maternity\webclient\wizard\lorappmaternityslui.web\navigation\navigation.xml"
Set objFile = objFSO.OpenTextFile(Getxml2, 1)
strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText,Str1,Str2)
Set objFile = objFSO.OpenTextFile(Getxml2, 2)
objFile.WriteLine strNewText
objFile.Close
----------------------------------------------------------------------------------
From the above code, this is used for incrementing a version. So, how can I give inputs which is BOLD in text to bat file (The same inputs should change in Vb Script)?
--------------------------------------------------------------------------------------
Thanks in advance!