GoTo LabelName
If Exec ("NOTEPAD.EXE" ,True ,"Loging.txt" ) = False Then GoTo ErrorExit ' ErrorExitへ制御を移す。 End : ErrorExit: ' ここから処理を行う。 :