how to write a batch file / vbscript to insert the current date and time into an AssemblyInfo file -
can please show me how write batch file / vbscript insert current date , time assemblyinfo file?
i have assemblyinfo file, , want assemblydescription attribute value time batch file executed.
[assemblytitle="myfile"] [assemblydescription=""] [assemblyversion="1.1.0"]
many in advance!
it's easier in vbscript:
filename = "..." set fso = createobject("scripting.filesystemobject") set re = new regexp re.pattern = "\[assemblydescription="".*?""\]" re.ignorecase = true txt = fso.opentextfile(filename).readall txt = re.replace(txt, "[assemblydescription=""" & & """]") fso.opentextfile(filename, 2).write txt
Comments
Post a Comment