Please enable JavaScript to view this site.

A-Shell Reference

Reviewed and revised December 2023

tab(-10, AG_GETSHELLPATH); csidl; chr(127);     Tab(-10,x) Syntax Notes

AG_GETSHELLPATH (71) retrieves the physical directory path corresponding to a logical Windows directory identified by its CSIDL identifier.

This function has both a subroutine and a print tab implementation.

Parameters

csidl

One of the defined CSIDL_xxx identifiers

Response

Folder path corresponding to the csidl identifier, followed by carriage return:

folder <CR>

Example

++include ashinc:csidl.def   ! include CSIDL_xxx definitions

 

? tab(-10, AG_GETSHELLPATH); CSIDL_APPDATA; chr(127);    ! (26)

input "", folder$        

 

? folder$                    ! C:\Users\jack\AppData\Roaming

 

See Also