Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing working directory in Erlang shell under Windows

Tags:

erlang

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 ?

like image 675
Zbigniew Avatar asked May 23 '10 13:05

Zbigniew


People also ask

How do I change directory in Erlang shell?

1.2. erl . Make sure that you are in the directory, where the program file is stored. Use the command pwd(). to check this and, if needed, change directory by using the command cd(Dir). .


1 Answers

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

Note: You need to use the forward slash and not backward slash as you would normally do in windows.

like image 87
Gnu Engineer Avatar answered Nov 10 '22 00:11

Gnu Engineer