Page 1 of 1

[12 Jan 2008] Request for a New DOS Function

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 12 Jan 2008 20:21:14 -0000

Hi Andreas,

Would you be able to add a function that would return a string with the full path of the currently active directory?

Thanks,

[13 Jan 2008] Re: Request for a New DOS Function

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 13 Jan 2008 15:13:36 +0100
Hi Andreas,

Would you be able to add a function that would return a string with the full path of the currently active directory?
Hollywood 3.0 has a command which can do that for you. GetFileAttributes() can be used to query things like file dates, comments, flags, full paths.

To get the full path of the working directory, one would use:

Code: Select all

r = GetFileAttributes("")   ; an empty string denotes current working directory
Print(r.path)   ; print full path

[13 Jan 2008] Re: Request for a New DOS Function

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 13 Jan 2008 10:27:37 -0800 (PST)

Sounds great!

(Looking forward to using 3.0.)