A question on MasmBasic
Hi jj,
if I use the GetFiles macro, I get the amount of files in eax and the full filenames in Files$(ecx)...
Example...
GetFiles *.txt
mov counter,eax
xor ecx,ecx ;Files$(0)
.while counter !=0
push ecx ;lstrcpy changes ecx
INVOKE lstrcpy,offset mybuffer,Files$(ecx)
;do something
;for example
;D:\temp\firstfolder\test1.txt
pop ecx
inc ecx
dec counter
.endw
Is there a possibility to isolate the path and the filename from Files$(ecx) ?
I would need to have the path: D:\temp\firstfolder\ and the filename: test1.txt