Problem with chdir()
- Posted by jluethje at gmx.de Jun 02, 2002
- 455 views
Hello all, in directory d:\, I have the following file chdir.ex: ---------------------- file d:\\chdir.ex ---------------------- include file.e include get.e integer i i = chdir("c:\\temp") if i then printf(1, "result of chdir() is %d\n", i) puts(1, "current directory is " & current_dir()) else puts(1, "error") end if i = wait_key() ---------------------- When I open the directory d:\ in the explorer (under Windows 98), and doubleklick on chdir.ex (Euphoria 2.3 installed), I get the following message: result of chdir is 1 current directory is D:\ But what about the command chdir("c:\\temp")? When I rename the file to chdir.exw and run it, I get the message result of chdir is 1 current directory is c:\temp as expected. Can anyone please tell me, what is wrong with ex.exe and chdir()? Thanks in advance, Juergen