Sub JobDone(Job As HttpJob)
If Job.Success = True Then
Dim OutStream As OutputStream
If os.Contains("win") Then
OutStream = File.OpenOutput(File.DirApp & "\..\", File.GetName(link1), False)
Else If os.Contains("mac") Then
OutStream = File.OpenOutput(File.DirApp & "/", File.GetName(link1), False)
Else If os.Contains("nux") Then
OutStream = File.OpenOutput(File.DirApp & "/", File.GetName(link1), False)
End If
File.Copy2(Job.GetInputStream, OutStream)
OutStream.Close