set defa to addbs(justpath(sys(16,1))) local m.myvar text to m.myvar textmerge noshow dir "<<justpath(getd())>>" /a-d /b /s > yfilename.txt endtext set safe off strtofile(m.myvar,"ydir_dos.bat") *modi comm ydir_dos.bat local oshell oshell=newObject("wscript.shell") oshell.run('ydir_dos.bat',0,.t.) oshell=null run/n notepad yfilename.txt