Notifications
Clear all

[Closed] Display short path

Hello, I have question.
I use getDirectries, it get full path.
It will use for dropdownlist. So I want only folder name…
Anyone could help me?
thank you.

  RenderElementPath = maxFilePath + "RendereElements/"
  tmp = getDirectories (RenderElementPath + "*")

2 Replies
theDirPath = @"C:\ProgramData\Autodesk\3DSMAX"
"C:\ProgramData\Autodesk\3DSMAX"
(DotnetObject "System.IO.DirectoryInfo" theDirPath).Name
"3DSMAX"

I wonder why your file path uses “¥” as a separator. Is this the case with the Japanese language system?

Thank you sir!! I got it!

Yes, this is japanese language system’s own issue… XD