Desktop Path with ver.7


I Have a Problem with Paths…
In Version 6.5 of XSI I was using this line (JScript):

var DesktopPath = XSIUtils.ResolvePath("$USERPROFILE")+"\Desktop";

I used this line to get Desktop path to export objects or

But when I worked on ver.7 the command send me an error
on Value: “$USERPROFILE”: Invalid argument specified.
He couldn’t resolve that path…

So What’s the problem?
Is there another way to get user profile path…?

Thanks 4 reading…


This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.