- Aug
- 2,056
- 83
While the @SHFolder Variable Function is present in TCC v15, it is not present in 4NT8, and I just happen to need to use that Variable Function in 4NT8 on my Windows 2000 system.
I did a search of the forums, and one of the threads I found was http://jpsoft.com/forums/threads/shfolder-questions.4343/
My solution was to use the @WINAPI Variable Function, which is available in 4NT8, to create the @SHFolder Variable Function as follows;
Now, when I want to know the location of "My Documents", I can execute
which is the same Variable Function that I would use in TCC v15.
Joe
I did a search of the forums, and one of the threads I found was http://jpsoft.com/forums/threads/shfolder-questions.4343/
My solution was to use the @WINAPI Variable Function, which is available in 4NT8, to create the @SHFolder Variable Function as follows;
Code:
shfolder=`%@winapi[shell32.dll,SHGetFolderPath,0,%1,0,0,BUFFER]`
Now, when I want to know the location of "My Documents", I can execute
Code:
echo %@shfolder[5]
which is the same Variable Function that I would use in TCC v15.
Joe