在Windows下在Erlang Shell中更改工作目录 [英] Changing working directory in Erlang shell under Windows
本文介绍了在Windows下在Erlang Shell中更改工作目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在WinXP机器上安装了Erlang。因此,我通过 werl.exe使用它。问题是,我想更改一个启动werl的默认文件夹。尽管我知道一定有类似的东西,但我找不到让我这样做的选项。
有人可以帮忙吗?
I have Erlang installed on my WinXP machine. Becouse so, I use it by a "werl.exe". The problem is, that I would like to change a default folder that werl starts in. I cannot find option that would let me do that, although I know there must be something like that. Could anybody help ?
推荐答案
如果要在运行时在模拟器中更改目录,请使用内置的
If you want to change directory at run time in the emulator then use the built in function cd as below..
72> cd("c:/Sandbox/erl").
c:/Sandbox/erl
ok
注意:您需要使用正斜杠,而不是像通常在Windows中那样的反斜杠。
Note: You need to use the forward slash and not backward slash as you would normally do in windows.
这篇关于在Windows下在Erlang Shell中更改工作目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文