[12 Jan 2008] Request for a New DOS Function

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[12 Jan 2008] Request for a New DOS Function

Post 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,
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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.)
Locked