So-net無料ブログ作成

ファイル内の文字列を bat で書き換える

ファイル内の 日時 指定文字列を動的に置き換えるための bat を考えた
 
@echo off
 
rem 1日前の固定時間の文字列をset
set /a dd=%date:~-2%-1
set dt=%date:~-10,4%-%date:~-5,2%-%dd%T15:00:00.000Z
 
rem SourceおよびDistinationファイル名set
cd "D:\<TargetFolderPath>\"
set dstfname=conf.xml
set header=conf.header
set srcfname=conf.template
 
type nul >%dstfname%
type %header%>>%dstfname%
 
setlocal ENABLEDELAYEDEXPANSION
for /f "delims=" %%A in (%srcfname%) do (
    set line=%%A
    echo !line:RepStr=%dt%!>>%dstfname%
)
endlocal

nice!(0)  コメント(49)  トラックバック(0) 

nice! 0

コメント 49

CrbnOptispGF

debt consolidation companies - http://personalnerloan.org/ debt counseling <a href=http://personalnerloan.org/>bad credit personal loans</a> ’
by CrbnOptispGF (2017-09-21 14:30) 

お名前(必須)

cost of cialis
<a href="http://cialisofkl.com/">cialis buy</a>
tadalafil generic cialis
<a href=http://cialisofkl.com/>cialis</a>
by お名前(必須) (2017-09-23 10:55) 

お名前(必須)

cialis and women
<a href="http://cialisovnas.com/">generic cialis</a>
daily cialis
<a href=http://cialisovnas.com/>cialis</a>
by お名前(必須) (2017-09-23 20:27) 

お名前(必須)

cialis daily use
<a href="http://cialiseimah.com/">cialis</a>
cialis 10 mg daily
<a href=http://cialiseimah.com/>cialis</a>
by お名前(必須) (2017-09-25 22:21) 

お名前(必須)

purchase cialis
<a href="http://cialisoakdm.com/">cheap cialis</a>
tadalafil generic cialis
<a href=http://cialisoakdm.com/>generic cialis</a> ’
by お名前(必須) (2017-09-25 22:48) 

お名前(必須)

cialis cost
<a href="http://cialisjrncd.com/">cialis</a>
safe cialis
<a href=http://cialisjrncd.com/>cheap cialis</a> ’
by お名前(必須) (2017-09-25 22:59) 

お名前(必須)

best price cialis
<a href="http://cialiseiand.com/">cialis online</a>
brand name cialis
<a href=http://cialiseiand.com/>cheap cialis</a> ’
by お名前(必須) (2017-09-26 06:48) 

VtnoVotaSY

cialis professional - https://jrucialis.com
cialis 5mg side effects <a href=https://jrucialis.com>cialis online</a> ’
by VtnoVotaSY (2017-09-27 00:02) 

KrtpcoaklyDE

cialis 5mg reviews - http://haycialis.com/
cialis online uk <a href=http://haycialis.com/>generic cialis</a> ’
by KrtpcoaklyDE (2017-09-27 00:02) 

お名前(必須)

cialis 5mg - http://cialiskanr.com
generic cialis does it work <a href=http://cialiskanr.com>cialis</a>
by お名前(必須) (2017-09-27 10:29) 

お名前(必須)

cialis 2.5mg - https://cialisonlin.com
brand cialis cheap order <a href=https://cialisonlin.com>buy cialis</a> ’
by お名前(必須) (2017-09-27 11:05) 

お名前(必須)

1 hour payday loans no faxing
<a href="https://paydayrvjlo.com/">get payday loan</a>
bad credit no fax payday loans
<a href=https://paydayrvjlo.com/>payday loan</a> ’
by お名前(必須) (2017-09-29 00:25) 

お名前(必須)

fast payday loans online
<a href="https://cashrvyn.com/">payday advances</a>
bad credit loan payday loans payday lender bad credit loan
<a href="https://cashrvyn.com/">cash advance</a> ’
by お名前(必須) (2017-09-29 00:25) 

お名前(必須)

cash loans
<a href="https://loansbtxsa.org/">online payday loans</a>
emergency loan
<a href=https://loansbtxsa.org/>cash advance</a> ’
by お名前(必須) (2017-09-29 00:58) 

LmazIdeadaOU

fast cash personal loans
<a href="https://paydayrvyaf.com/">payday loans online same day</a>
payday advance
<a href=https://paydayrvyaf.com/>online payday loans direct lenders</a> ’
by LmazIdeadaOU (2017-09-29 04:07) 

お名前(必須)

same day loans bad credit
<a href="https://cashshybn.com/">cash advance lenders</a>
cash and payday loans
<a href=https://cashshybn.com/>payday loans</a> ’
by お名前(必須) (2017-09-29 07:03) 

お名前(必須)

10 dollar payday loans
<a href="https://paydaytbukl.org/">payday loans</a>
a payday loan uk
<a href=https://paydaytbukl.org/>payday loans</a> ’
by お名前(必須) (2017-09-29 07:16) 

お名前(必須)

cash loans online
<a href="https://personalvrdcg.org/">small personal loans</a>
approved payday loans
<a href=https://personalvrdcg.org/>small personal loans</a> ’
by お名前(必須) (2017-09-29 11:37) 

お名前(必須)

irs debt relief
<a href="https://badcreditnyrc.org">fast payday loans</a>
car title & payday loan
<a href=https://badcreditnyrc.org>online loans</a> ’
by お名前(必須) (2017-09-30 21:17) 

お名前(必須)

title loans texas
<a href="https://personalloansntui.com">small personal loans</a>
bad credit auto loan
<a href=https://personalloansntui.com>personal loans online</a> ’
by お名前(必須) (2017-10-01 08:11) 

vwqeCheabsYZ

student loan forgiveness
<a href="https://installmentloanvelam.com">bad credit installment loans</a>
direct lender payday loans
<a href=https://installmentloanvelam.com>get installment loan</a> ’
by vwqeCheabsYZ (2017-10-01 11:30) 

お名前(必須)

check cash
<a href="https://leopaydayadvanceonlinefastpayday.org">cash advance online</a>
poor credit loans
<a href=https://leopaydayadvanceonlinefastpayday.org>payday loans</a> ’
by お名前(必須) (2017-10-01 15:23) 

お名前(必須)

are internet payday loans legal
<a href="https://nowpayday1.com">fast payday loans</a>
consolidation debt
<a href=https://nowpayday1.com>payday loans</a> ’
by お名前(必須) (2017-10-01 15:52) 

お名前(必須)

cialis effectiveness - http://cialisovnas.com/
cialis available in india <a href=http://cialisovnas.com/>cialis buy</a> ’
by お名前(必須) (2017-10-02 11:28) 

お名前(必須)

bad credit cash fast payday loan loans
<a href="https://paydayllae.com/">payday loans no credit check</a>
fast payday loans online
<a href=https://paydayllae.com/>pay day loan</a> ’
by お名前(必須) (2017-10-03 23:29) 

お名前(必須)

can payday loan companies sue
<a href="https://cashnowemr.com">payday cash loan</a>
personal loans for debt consolidation
<a href=https://cashnowemr.com>payday loan lenders</a> ’
by お名前(必須) (2017-10-04 00:17) 

JtnbIdeadaRF

1500 payday loan
<a href="https://paydayloamec.com/">payday loans online</a>
bad credit history payday loans
<a href=https://paydayloamec.com/>cash advance</a> ’
by JtnbIdeadaRF (2017-10-04 03:11) 

お名前(必須)

loans online payday
<a href="https://cashadmme.com/">get payday loan</a>
payday loan company in
<a href=https://cashadmme.com/>same day payday loans</a> ’
by お名前(必須) (2017-10-04 06:36) 

お名前(必須)

1000 online payday loan
<a href="https://paydayloanswwe.com/">payday cash loan</a>
online check advance
<a href=https://paydayloanswwe.com/>same day payday loans</a> ’
by お名前(必須) (2017-10-04 18:08) 

お名前(必須)

avoiding payday loan debt - https://paydayllae.com/
a payday loan no faxing <a href=https://paydayllae.com/>instant payday loans</a> ’
by お名前(必須) (2017-10-05 07:18) 

お名前(必須)

payday loan no fax document - https://cashnowemr.com
same day money loans <a href=https://cashnowemr.com>instant payday loans</a> ’
by お名前(必須) (2017-10-05 07:55) 

FnrxusemoAR

ca payday loan laws - https://paydayloamec.com/
no fax no teletrack payday loans <a href=https://paydayloamec.com/>payday loans online</a> ’
by FnrxusemoAR (2017-10-05 11:09) 

お名前(必須)

fast loans - https://cashadmme.com/
instant cash <a href=https://cashadmme.com/>bad credit payday loans</a> ’
by お名前(必須) (2017-10-05 14:08) 

FnveeusemoJU

az laws payday loans - https://paydaybdrfs.com/
personal installment loan <a href=https://paydaybdrfs.com/>best payday loans</a> ’
by FnveeusemoJU (2017-10-07 03:02) 

お名前(必須)

check cash advance - https://paydayloansrvhj.com/
debt reduction services <a href=https://paydayloansrvhj.com/>payday loans</a> ’
by お名前(必須) (2017-10-07 06:09) 

お名前(必須)

cialis shipped overnight - https://genericgenericcialis.com/
cheapest brand cialis <a href=https://genericgenericcialis.com/>cialis online</a> ’
by お名前(必須) (2017-10-07 06:10) 

お名前(必須)

buy tadalafil cialis - https://buybuybuycialis.com/
liquid cialis <a href=https://buybuybuycialis.com/>online cialis</a> ’
by お名前(必須) (2017-10-07 11:29) 

お名前(必須)

buy cialis online without prescription
<a href="https://onlineonlinecialis.com/">cialis online</a>
cialis once a day pricing
<a href=https://onlineonlinecialis.com/>buy cialis</a> ’
by お名前(必須) (2017-10-08 06:35) 

お名前(必須)

same day money loans
<a href="https://paydayloawdcr.com/">online payday loans direct lenders</a>
apple payday loans
<a href="https://paydayloawdcr.com/">payday loans near me</a> ’
by お名前(必須) (2017-10-08 06:35) 

お名前(必須)

1000 faxless payday loan
<a href="https://cashcevth.com">online payday loan</a>
bad credit debt consolidation internet payday loan
<a href=https://cashcevth.com>payday loan lenders</a> ’
by お名前(必須) (2017-10-08 07:27) 

お名前(必須)

5 mg cialis
<a href="https://genericgenericcialis.com/">buy cialis</a>
cialis once a day pill
<a href=https://genericgenericcialis.com/>cialis online</a> ’
by お名前(必須) (2017-10-08 13:41) 

お名前(必須)

how long does cialis last - http://buycialis-menedpil.com/
get cialis <a href="http://buycialis-menedpil.com/">purchase cialis online</a> ’
by お名前(必須) (2017-10-11 04:29) 

お名前(必須)

tadalafil generic cialis - http://onlinecialis-cialisvip.com
online generic cialis <a href=http://onlinecialis-cialisvip.com>cialis online</a> ’
by お名前(必須) (2017-10-11 05:45) 

お名前(必須)

cialis prices - http://cialisonline-pricepil.com/
cheap liquid cialis <a href=http://cialisonline-pricepil.com/>cialis for sale</a> ’
by お名前(必須) (2017-10-11 10:58) 

AqrhdatommaDI

cialis soft - http://genericcialis-viaed.com/
buy tadalafil cialis <a href=http://genericcialis-viaed.com/>cialis prescription</a> ’
by AqrhdatommaDI (2017-10-11 20:36) 

お名前(必須)

cialis price comparison - http://cialisonline-vipmej.com/
cialis dosing <a href=http://cialisonline-vipmej.com/>generic cialis</a> ’
by お名前(必須) (2017-10-11 21:39) 

お名前(必須)

cialis online
<a href="http://buycialis-menedpil.com/">cheapest cialis</a>
next day brand cialis only online
<a href="http://buycialis-menedpil.com/">discount cialis</a> ’
by お名前(必須) (2017-10-12 07:23) 

お名前(必須)

cialis free trial
<a href="http://onlinecialis-cialisvip.com">cialis how it works</a>
cialis professional
<a href=http://onlinecialis-cialisvip.com>generic cialis</a> ’
by お名前(必須) (2017-10-12 08:16) 

お名前(必須)

cialis tadalafil lilly
<a href="http://cialisonline-pricepil.com/">cialis samples</a>
cheap cialis soft tabs
<a href=http://cialisonline-pricepil.com/>buy cialis cheap</a> ’
by お名前(必須) (2017-10-12 13:25) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。

×

この広告は1年以上新しい記事の更新がないブログに表示されております。