Koen Piller
Programmer
Hi,
I would like to make a list of all files in all subdirectories with their fullpath and had therefore constructed
Which works fine, but how to suppress the DOS-Box flashing?
Regards,
Koen
I would like to make a list of all files in all subdirectories with their fullpath and had therefore constructed
Code:
tcSourceFile = "D:\Foxexamples\Backup"
tcDestinationFile = "C:\Temp\Files.txt"
lcCmd = "DIR "+ tcSourceFile+ "/s /b /a-d > " + tcDestinationfile
loShell = Createobject("wscript.shell")
lnSuccess = m.loShell.Run(m.lcCmd,1,.T.)
If m.lnSuccess = 0
=Messagebox("list successful.",0+64,"Make a list!")
Else
=Messagebox("List failed",0+16,"Caution")
Endif
Regards,
Koen