Copy link to clipboard
Copied
Hello community
I have been researching routes in ColdFusion and I want to know if there is any function that returns the root node of the directory.
Example: C:\mydirectory\myotherdirectory
output: C:\
Example: D:\mydirectory\myotherdirectory
output: D:\
#listfirst(expandpath('./'),'/')#
this should return the 'c:' part of the current directory
please note this might not work if you are in a shared environment.
and not too sure this will work on Linux
Copy link to clipboard
Copied
#listfirst(expandpath('./'),'/')#
this should return the 'c:' part of the current directory
please note this might not work if you are in a shared environment.
and not too sure this will work on Linux
Copy link to clipboard
Copied
createobject("java", "java.lang.System").getenv("SystemDrive")
Find more inspiration, events, and resources on the new Adobe Community
Explore Now