There is nothing to do with that shell variable (prefix) under GS. Actually, you can obtain the value of that variable, but there is more convenient way. Look at SHGetFolderPath. You can call it to obtain the right place to store your data.