Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
866 B

$newjob = `drizzlecli.exe /rawreturn /create TestGroup`;
`drizzlecli.exe /addfile $newjob http://aptest/scratch/sudheer/dload/big1.txt c:\\temp\\big1.txt`;
`drizzlecli.exe /resume $newjob`;
while(1) {
$jobstate = `drizzlecli.exe /rawreturn /getstate $newjob`;
if ( $jobstate eq "ERROR")
{
print("Job hit an error\n");
$errormsg = `drizzlecli.exe /geterror $newjob`;
`drizzlecli.exe /cancel $newjob`;
die($errormsg);
}
elsif ( $jobstate eq "TRANSFERRED" )
{
print("Job transferred, completing...\n");
`drizzlecli.exe /complete $newjob`;
print("Job transferred.");
exit(0);
}
$bytestransfered = `drizzlecli.exe /rawreturn /getbytestransfered $newjob`;
$bytestotal = `drizzlecli.exe /rawreturn /getbytestotal $newjob`;
print( "$jobstate $bytestransfered / $bytestotal\n" );
sleep( 5 );
}