Skip to main content
Participant
July 25, 2008
Question

CFExpand Path

  • July 25, 2008
  • 2 replies
  • 309 views
I'm trying to use ExpandPath to set destination and source attributes in cffile.

My issue is that ExpandPath("/") returns C:\sites\mysite\ on my remote server and C:\ColdFusion8\wwwroot\ on my local server.

If I use ExpandPath("/mysite/"), I get C:\ColdFusion8\wwwroot\mysite\ on my local server and C:\websites\mysite\mysite\ on the remote server.

Is their mapping or something I can do on my local server to make ExpandPath return the same path on both servers so that I don't have to change the code work on the code on my local server and then change it again to put it on the remote server?

I'm using Dreamweaver CS3 to manage mysite.
    This topic has been closed for replies.

    2 replies

    Inspiring
    July 25, 2008
    craigkaminsky wrote:
    > You might want to try ExpandPath("*.*") and see what that returns compared to the others.

    you might also try some of the other file functions such as
    getTemplatePath(), getBaseTemplatePath() and their brethren.
    Inspiring
    July 25, 2008
    You might want to try ExpandPath("*.*") and see what that returns compared to the others.