Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Question from R. N. Wilhite on Jun 8 at 12:05 PM In the past, other programmers have hard coded C:\TEMP as the default destination for local file paths. Our network people are now taking away authorization to everything C:\.. So all of these paths have to be changed. The only legal path left is in the user directory. %HOMEPATH% gives you that directory, but XP and Sys7 have a different structure there after. For XP, I can use %HOMEPATH%\SAPWorkDir but for Sys7, I'd need %HOMEPATH%\My Documents\SAP. How am I going to make that determination programmatically? I know that if you don't specify a path, SAP will automatically pick the "Work Dir", but this is disturbing to the users. They don't feel like they know where the file is going. I suppose it would be best to programmatically evaluate %HOMEPATH% as well (turn it into a normal path string), but I don't know how to do that either. I guess another option would be to programmatically read the path of "work dir". Any suggestions (including a complete change in direction)? Neal | Reply to this email to post your response. __.____._ | _.____.__ |