hi, i have this code
Code:
if file("h:\dtr\dtr.exe")=.t.
=adir(lalocal,"c:\dtr\dtr.exe")
=adir(laserver,"h:\dtr\dtr.exe")
if lalocal(1,3)<laserver(1,3)
?winexecrun("copy h:\dtr\*.* c:\dtr")
else
if lalocal(1,3)=laserver(1,3)
if lalocal(1,4)<laserver(1,4)
?winexecrun("copy h:\dtr\*.* c:\dtr")
endif
endif
endif
run /n dtr.exe
else
wait window "Drive H not found on your computer! Please log on.."
endif
function winexecrun
parameter ccommand
declare integer WinExec in win32api ;
string command, integer param
retval = winexec(sys(2004) + "FOXRUN.PIF /C " + ccommand, 0)
clear dlls winexec
return retval
this code basically copies the latest dtr.exe from drive H to user's computer. i want to hide dos window while it is copying the files.
after i run this code, dtr.exe in C is not updated to the latest version in drive H. i'm very sure files in drive H are the new files.
pls help. TIA