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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -