Forum Discussion

dnn's avatar
dnn
New Contributor
14 years ago

ProjectSuite.FileName

Hi



I need a little bit help. I want to use the ProjectSuite Object '"FileName" but my ReturnValue for ProjectSuite.FileName is the full path and not only the name like I expect. Is there any mistake from my site, or is it a bug?



var strProjectSuite = ProjectSuite["FileName"]



my result: .......CVS_Main\ZisAlarmwebclient\ZisAlarmwebclient.pjs

expected result: ZisAlarmwebclient





Thanks

Daniel


2 Replies

  • Hi,


    This behavior is expected for the FileName method. This method returns the full path and name of the project suite file.



    To get only the file name, use the following code:




    aqFileSystem.GetFileNameWithoutExtension(ProjectSuite.FileName)