This is best I can do:-
Code: Select all
Dim sVar as string
sVar = User.Home &/ "00.mp3"
Print IsDir(File.Dir(sVar) &/ File.Name(sVar))
Code: Select all
Dim sVar as string
sVar = User.Home &/ "00.mp3"
Print IsDir(File.Dir(sVar) &/ File.Name(sVar))
Print IsDir(User.Home &/ "00.mp3")
Dim strFilePath As String
'--- It's either you get the path building it in a procedure, OR, just build the string, according to a specific situation
'--- strFilePath= Application.Path & "/App.conf" '--- it's just an example, can be more ellaborate than that.
If Exist(strFilePath) Then
'--- DoWhatIsRequired()
Else
'--- BranchForErrors()
End If
The other approach, would be using the Dir(), then IsDir(), but it depends very much on the specifics of the App.Are you SURE YOU need to know?bill-lancaster wrote: ↑Sunday 29th March 2020 9:37am I need to know if sVar is just a directory or if it contains a file name