外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
mshtaで時刻を書き込む
:mshtaで時刻を書き込む
@echo off
if exist jwc_temp.txt (
copy jwc_temp.txt myfiles > nul
mshta %~f0 > jwc_temp.txt
)
goto:eof
REM #jww
REM #0 時刻を書き込む基点を指示してください
REM #e
<script>
with (new ActiveXObject("Scripting.FileSystemObject")) {
g = GetStandardStream(1) //stdout
today = new Date()
Y = (today.getFullYear()).toString()
m = (today.getMonth()+1).toString()
d = (today.getDate()).toString()
H = (today.getHours()).toString()
M = (today.getMinutes()).toString()
S = (today.getSeconds()).toString()
week = ["日","月","火","水","木","金","土"]
w = week[today.getDay()]
g.WriteLine( 'ch 0 0 1 0 "日本時間 '+Y+'/'+m+'/'+d+" "+H+":"+M+":"+S )
}
close()
</script>