>>599
有難うございます

if (ErrorLevel = 0 or state = D)のカッコを外したらA点に移動しなくなりました

if (ErrorLevel = 0 or state = D)のまま
if state = Dにもカッコをつけたら前と変わらない動作のままでした