diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 93b8cb1b3..c3ea94532 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -10212,7 +10212,21 @@ END FUNCTION FUNCTION idezgetroot$ 'note: does NOT including a trailing / or \ on the right - idezgetroot$ = _CWD$ + IF os$ = "WIN" THEN + SHELL _HIDE "cd >.\internal\temp\root.txt" + OPEN ".\internal\temp\root.txt" FOR INPUT AS #150 + LINE INPUT #150, a$ + idezgetroot$ = a$ + CLOSE #150 + EXIT FUNCTION + ELSE + SHELL _HIDE "pwd >./internal/temp/root.txt" + OPEN "./internal/temp/root.txt" FOR INPUT AS #150 + LINE INPUT #150, a$ + idezgetroot$ = a$ + CLOSE #150 + EXIT FUNCTION + END IF END FUNCTION