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,
[12 Jan 2008] Request for a New DOS Function
- airsoftsoftwair
- Posts: 5833
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[13 Jan 2008] Re: Request for a New DOS Function
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 13 Jan 2008 15:13:36 +0100
To get the full path of the working directory, one would use:
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.Hi Andreas,
Would you be able to add a function that would return a string with the full path of the currently active directory?
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
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.)
Sounds great!
(Looking forward to using 3.0.)