02-12-2006, 10:39 AM
This is an interesting topic since I am facing similar problems. I use the following codes to find an executable but I have not tested it if the executable is on another drive.
From the above code, this will only search for the C drive correct? What if there are other drives? And it happens that the program is installed on another drive other than the C?
Dir d; str vPath
foreach(d; "c:\listing.exe" FE_Dir 0x4)
vPath=d.FileName(1); err
if vPath =! ""
break
out vPathFrom the above code, this will only search for the C drive correct? What if there are other drives? And it happens that the program is installed on another drive other than the C?
