Click to See Complete Forum and Search --> : Wait process until copy the files.


anandtugaon
January 16th, 2008, 05:24 AM
Hi,

We are write the following script, for download the files

---------------------------------code------------------------------------------------------
xcopy \\Anandcol2k45s01\Anand \files\*.fmx c:\forms10g\forms90\ /y >>c:\spinquotelogfile.txt
xcopy \\Anandcol2k45s01\Anand \files\*.mmx c:\forms10g\forms90\ /y >>c:\spinquotelogfile.txt
xcopy \\Anandcol2k45s01\Anand \files\*.exe c:\forms10g\forms90\ /y >>c:\spinquotelogfile.txt


-------------------------------------------------------------------------------------------


But when network is slow the file is not copy the to local system.

Please suggest How will copy the files to local system when network is slow.
i mean wait the process until copy the files to local system. when network is slow.


Thanks,
Anand

PeejAvery
January 16th, 2008, 07:43 AM
By the term slow...I'm assuming you mean when the network connection is idle. DOS/batch files have no access to any processes. If you want to do this, you are going to have to write a real application, not a script.

S_M_A
January 16th, 2008, 02:01 PM
There is a /Z flag for xcopy. I can't say I understand the help for it (Copies networked files in restartable mode.) but it might make a difference. After all, it should be good for something... :)