hide's memo
19 Feb, 2022

port forwarding on Windows

[japanese(日本語)]

port forwarding on windows.

1.input commands as follows

netsh interface portproxy add v4tov4 listenport=[listen port] listenaddr=[My address(not 127.0.0.1)] connectport=[destination port] connectaddress=[destination address]

2. 上記定義の削除

netsh interface portproxy delete v4tov4 listenport=[listen port] listenaddr=[My address(not 127.0.0.1)
19 Feb, 2022

Using date string on a file

[japanese(日本語)]

This is a sample to attach the date string on your file.

Set DD=%date:~0,4%%date:~5,2%%date:~8,2%
set time2=%time: =0% 
Set TT=%time2:~0,2%%time2:~3,2%%time2:~6,2%
move logerr.log logerr_%DD%_%TT%.log
move logstd.log logstd_%DD%_%TT%.log