在windows上面,切换到文件保存的目录,例如
cd("C:/Users/AAA/Documents/program").
然后就可以在eshell中编译erlang的脚本了。
io:format("Consulting .erlang in ~p~n",[element(2,file:get_cwd())]).
cd("C:/Users/E884402/Documents/program").
io:format("Now in in ~p~n",[element(2,file:get_cwd())]).