Befor run from cmd