Running a simple console test app on Windows 7 the File.DirApp is returning the 'short' filename system but I need the long file system. Example:
B4X:
' console app - Test File.DirXX output
#Region Project Attributes
#CommandLineArgs:
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Log(File.DirApp)
Log(File.DirTemp)
End Sub
File.DirApp is based on a system property. It returns the value as is.
In most cases it doesn't matter whether you hold the short name or the long name. You can use this code to get the full name:
B4X:
Sub GetCanonicalPath(Path As String) As String
Dim fileO As JavaObject
fileO.InitializeNewInstance("java.io.File", Array As Object(Path))
Return fileO.RunMethod("getCanonicalPath", Null)
End Sub