c# - Passing a Date Parameter in XML inside another XML element on config file -
i bit new understanding xml config files know far: have config file used c# based .exe , gets parsed move files 1 location another.
as of right use standard creating file element , destinations/source:
<?xml version="1.0" encoding="utf-8"?> ...miscellaneous xml config nodes <filelocation sourcepath="\\server" destinationpath="\\server" archivepath="\\server"> <file> <filekeyword>company_memo.txt</filekeyword> <filedestination>memo.txt</filedestination> </file> </filelocation>
so can see scans source folder , renames whatever put in moves destination directory.
question: i've been trying figure out how append date parameter, preferable date, or full name of file finds in instead of setting arbitrary name. this:
<filelocation sourcepath="\\server" destinationpath="\\server" archivepath="\\server"> <file> <filekeyword>company_memo.txt</filekeyword> <filedestination>memo<date></date>.txt</filedestination> </file> </filelocation>
ive looked using , xsl node can't figure out if possible.
the executable cannot modified without dev modification request , hoping there way around that.
you going need dev modification request. devs have set method xml gets parsed, , unless have set take date parameter, won't able add 1 using xml config file. if did, you're going have ask them how use it, proprietary system , nobody outside company have knowledge on how use parsed correctly software.
Comments
Post a Comment