ä»åã¯.....
ã¯ãïŒããã°ãã¯ïŒ
ååã¯ã§ããããµãŒããŒã®ç«ã¡äžããè¡ããŸããŠãçµæçã«æãããã¡ã€ã€ãŒãŠã©ãŒã«ããªïŒ
ãªã©ãšæã£ãŠãããšãããç¥ãåãã®ã€ã³ãã©é¢ä¿ã®äºããã£ãŠãã人ã«èãããã§ãã
å€åIPã¢ãã¬ã¹ã®ååŸã®æãIpv4ã§ã¯ãªãv6ã«ãªã£ãŠããŸã£ãŠããã®ã§ã¯ãªããïŒ
ãšããäºãæãããŸããŠããããããŸã æãä»ããŠããªãã®ã§äœãšãèšããªãæãªã®ã§ããïŒç¬ïŒ
ããŠããããªä»æ¥ã¯ã§ããçŸå Žã幎æããã決ãŸãããã£ãšãšã³ãžãã¢ãšããŠã®ãã£ãªã¢ãæ©ããããã§ãã
ãããªçŸå Žã§äœ¿ãããããåŠçãšèšããã®ãä»äœã£ãŠããŸããŠ
åãæ¢ããæ°ãããªããŠè§ŠããŠãåºç€çãªæãããçšåºŠåŠã³ãŸããŠ
ãããããå®éã«DBïŒããŒã¿ã¹ãŒã¹ïŒã«ç»é²ããããDBïŒããŒã¿ã¹ãŒã¹ïŒãããã¡ã€ã«ãåãåºããã®ãäœã£ãŠã¿ãããšæããŸããŠã§ããã
ä»é±ã®æææ¥ããéå§ããããŸããŠããããŸã§è€éãªãã®ã§ã¯ç¡ãã§ããåèšã§30æ¬çšäœæããŠã¿ãŸããïŒïŒ
ã¯ãããããŸã§èŠãŠã
äœèšã£ãŠãããããããŒãïŒ
ãšæããŸãããïŒå€§äžå€«ã§ãåãä»é±ã®é ãŸã§ã¯ãããªæãã§ããïŒç¬ïŒ
ããããšèª¿ã¹ããš
âäžå®éã®(ãããã¯äžå®æéã®)ããŒã¿ãéããäžæ¬åŠçããããã®åŠçæ¹æ³â
ã¯ãïŒããã£èŠããïŒïŒ
ç°¡åã«èšããš
äœãæŽæ°ãšãç»é²ãšãããè¡ãããæã«äžã ãæã§å ¥åããŠãããããªãç¡ãã§ããã倧å€ã§ãããïŒ
ãããããã圢åŒã§å ¥åããããã¡ã€ã«ã決ãŸã£ãå Žæã«çœ®ããŠããäºã§ãèªåã§ç»é²ã ã£ãããæŽæ°ã ã£ãããããŠãããïŒçãªå¥Žã§ãã
ã¡ãªã¿ã«âããŒã¿ããŒã¹âã¯ååã®éãããããã®ããŒã¿ãå ¥ã£ãŠãã巚倧ãªç®±çãªãã®ã ãšæã£ãŠäžããã
åãã®ã¢ã«ãŠã³ãæ å ±ã ã£ãããæºåž¯ã®æ å ±ã ã£ããããããŒã¿ããŒã¹ã§ç®¡çãããŠãããšæããŸãããïŒæå®ããªãã®ã¯ãŸã ãã¯ã«ã ããã§ã...èš±ããŠïŒ
â»windowsã®å Žå
ãããŠããã®äœãçã«ã¯ãã³ãã³ããšåŒã°ãããã®ãããã¹ããã¡ã€ã«ïŒã¡ã¢åž³ãšãã§ããã§ãïŒã«æžããŠä¿åãããæã«
âsample.batâ
ãšãã¡ã€ã«ã®æ¡åŒµåã.batãšããã ãã§ããç°¡åã§ããã
ã¡ãªã¿ã«ååã¯äœã§ãè¯ãã§ãããïŒä»åã¯sampleïŒ
軜ããµã³ãã«ãæžããŸããš
@echo off
SET /P selected="åèµ·åããŸãã(y/n)ïŒ"
if /i "%selected%"=="y" (goto :yes)
if /i "%selected%"=="yes" (goto :yes)
exit 0
:yes
shutdown -r -t 0
exit 0
ããã§ãåèµ·åãåºæ¥ãŸãã
ã©ããªå 容ãªã®ããšèšããŸããš
äžçªäžã®@echo offã¯ããã§ã¯è§ŠããŸãããäœæ ãªãããçšåºŠè§ŠããŠããªããšãæå³ãããããªããšæãããã§ãïŒç¬ïŒ
SET /P selected="åèµ·åããŸãã(y/n)ïŒ"
SETã¯äœãšãªãããããšæããŸããããã®ãŸãŸã§ããã»ããããŸãã
äœãïŒã£ãŠãselectedãã»ããããŠããŸãã
/Pã¯ãå ¥åãããäºã®åºæ¥ããããŸããªãçã«æã£ãŠäžããã
åèµ·åããŸããïŒã衚瀺ããŠããå ¥åãåºæ¥ãŸãã
ã€ãŸãselectedã®å 容ã¯ãããªã次第ã§ãïŒãã€
ã§ããä»åã ãšã(y/n) yes or noã£ãŠäºãªã®ã§ã©ã¡ãããæã£ãŠãã ããã
ãããŠ
if /i %selected%=="y"(goto:yes)
if /i %selected%=="yes"(goto:yes)
âãããselectedãyãyesã ã£ããâ
gotoã®æã«åŠçã移ããŸãã
gotoã¯ãã®ãŸãŸã§ã:yesãšããæã«é£ãã§ãããŸãã
ãã®å 容ããshutdown(ã·ã£ããããŠã³) -rïŒrestartã®"r"ïŒ -t 0(timeã®"t")
ã€ãŸã0ç§åŸã«åèµ·åãããŸãïŒ
ãã以å€ã®å Žåã¯exitã«è¡ãã®ã§ãåŠççµäºã§ããäœãèµ·ãããŸããã
ããããã®ãã¡ã€ã«ãªã®ã§ãã
windowsãªã䜿ããã¯ãïŒæ°ã«ãªã£ããè©ŠããŠã¿ãŠãã ããïŒç¬ïŒ
æºåž¯çšãäœã£ãã貌ããŸãã
åãç°¡åã§ã¯æããŸãããããããšã¯ãããã£ãäºãæéãæå®ããŠããã°èªåã§ãã£ãŠããããã®ã§ããå¯ãŠããéã«ããã¯ã¢ããåã£ãŠããããããŸãã
ãããŠä»ã¯ãexcelãããã¡ã€ã«ãåãåã£ãŠãããJavaã§åŠçãããŠDBã«ç»é²ããŠããïŒãšèšãã®ãäœãçºã«å¥®éããŠããŸãïŒïŒç¬ïŒ
ãŸã ãŸã ãé§ãåºããªã®ã§è³ããªãæã ããã§ãã
楜ããé 匵ããŸãïŒ
ããã§ã¯ïŒ