PDA

View Full Version : Desktop Path with ver.7


islaSyr
07-05-2009, 12:25 PM
Hi
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
models..

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..

-

CGTalk Moderation
07-05-2009, 12:25 PM
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.