Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Background Intelligent Transfer Service

- - - - -

  • Please log in to reply
7 replies to this topic

#1
Bilou_Gateux

Bilou_Gateux

    Powered by Windows Embedded

  • Member
  • PipPipPipPipPip
  • 768 posts
  • Joined 03-January 04
Background Intelligent Transfer Service (BITS) is a Windows component that asynchronously transfers files in the foreground or background, throttles the transfers to preserve the responsiveness of other network applications, and will automatically resume file transfers when a computer is restarted and a network connection is re-established.

BITS is used by programs (such as Windows AutoUpdate) to download files by using spare bandwidth. BITS can maintain file transfers through network disconnections and computer restarts.

BITSAdmin is a command-line tool that you can use to create download or upload jobs and monitor their progress.

Where Can I Get the BITSadmin Tool?
Download link for the version 1.0 [ 5.1.2600.0 ]
tested : works with Windows 2000 Pro SP4

Background Intelligent Transfer Service Version 1.5 (SDK Package)
The BitsAdmin tool version 1.5 [ 5.2.3790.0 ] is located in the \tools folder of the Platform SDK.
Direct download bitsadmin version 1.5 administration utility.

Supported Operating Systems: Windows 2000, Windows XP

BITS v2.0 is included in Microsoft® Windows® XP SP2.
The \Support\Tools\Support.cab file on the operating system installation CD contains the BITSAdmin tool. To unpack and install BITSAdmin, run the Setup.exe file in the Tools directory.
You can also download BITS v2.0 for Windows XP SP1 and Windows XP. To download BITS v2.0 Update for Background Intelligent Transfer Service (BITS) 2.0 and WinHTTP 5.1 (KB842773)

@GM
it can be used to download all hotfixes (it' a M$ tool), set proxy settings, instead of using third-party iOpus downloader but neeed some code rewrites in XPCREATE.
OS Version = 5.1.2600 Service Pack 3
Platform ID = 2 (NT)
Service Pack = 3.0
Suite = 0x0140
Product Type = 1
Architecture = x86


How to remove advertisement from MSFN

#2
GreenMachine

GreenMachine

    ineXPlicable

  • Developer
  • 3,062 posts
  • Joined 22-August 03
Thanks, Bilou_Gateux. I just switched to WGET instead of theiOpus Downloader. Though I have not yet solved the Proxy part, I believe WGET will handle this quite nicely. I prefer a Non-GUI, small application, but if WGET does not meet my needs, I will look into the BITS.

Thanks again for your thoughts and ideas!

#3
Bilou_Gateux

Bilou_Gateux

    Powered by Windows Embedded

  • Member
  • PipPipPipPipPip
  • 768 posts
  • Joined 03-January 04
Batch file to download all the hotfixes with BITS.
In order to download HFs, you will need both files in same directory:
2KX86lng.TXT Each line in TextFile contains a remote and local file name. The names are space-delimited. Lines that begin with a # character are treated as a comment.
CREATEQ.CMD checks first if BITSADMIN.EXE is available and then creates a new instance of DWNLD.CMD batch file.
Running this program allow you to:
Creates a new transfer job with given job name.
A new job starts in a suspended state.
Appropriate files are added to the new job with specified local destination and remote source file name in FileSetList
And starts the job with ResumeJob.
Then any actual transfers will occur.
BITS runs in the background, so the batch script only start job.
Once a job has completed transferring file(s) down to the local machine, those files are not available to the user until the job is acknowledged through a call to the Complete method.
BITSADMIN /COMPLETE job
You can use the State property to determine the current status of a job.
BITSADMIN /GETSTATE job
Regardless of the specific status, you obtain the current progress of a job through the Progress property, which returns the bytes transferred/bytes total and files transferred/files total values, enabling you to determine a percentage of work that has been done.
BITSADMIN /GETBYTESTRANSFERRED job
BITSADMIN /GETFILESTRANSFERRED job
OS Version = 5.1.2600 Service Pack 3
Platform ID = 2 (NT)
Service Pack = 3.0
Suite = 0x0140
Product Type = 1
Architecture = x86

#4
GreenMachine

GreenMachine

    ineXPlicable

  • Developer
  • 3,062 posts
  • Joined 22-August 03
Thanks once again, Bilou_Gateux. It looks like we have not all been on Vacation!

#5
Bilou_Gateux

Bilou_Gateux

    Powered by Windows Embedded

  • Member
  • PipPipPipPipPip
  • 768 posts
  • Joined 03-January 04
Use BITS for your own downloads

A Download Manager using BITS can be found here: BITS Download Manager™
Another one can be found here: WinBITS

* Following is the method to determine BITS version installed on the machine
Check the file version of %windir%\system32\qmgr.dll
If it is 6.0.x.x => BITS 1.0
6.2.x.x => BITS 1.2
6.5.x.x => BITS 1.5
6.6.x.x => BITS 2.0

* To troubleshoot problems with BITS jobs, please use bitsadmin.exe
OS Version = 5.1.2600 Service Pack 3
Platform ID = 2 (NT)
Service Pack = 3.0
Suite = 0x0140
Product Type = 1
Architecture = x86

#6
GreenMachine

GreenMachine

    ineXPlicable

  • Developer
  • 3,062 posts
  • Joined 22-August 03
Thanks again!

#7
Bilou_Gateux

Bilou_Gateux

    Powered by Windows Embedded

  • Member
  • PipPipPipPipPip
  • 768 posts
  • Joined 03-January 04
An update package that includes BITS 2.0 and WinHTTP 5.1 is available for Windows Server 2003, for Windows XP, and for Windows 2000

This software updates the Background Intelligent Transfer Service (BITS) to v2.0 and updates WinHTTP.
Download ENU package:
Update for Background Intelligent Transfer Service (BITS) 2.0 and WinHTTP 5.1 Windows 2000 (KB842773)
Télécharger la mise à jour FRA :
Mise à jour pour le Service de transfert intelligent en arrière-plan (BITS) 2.0 et WinHTTP 5.1 Windows 2000 (KB842773)
OS Version = 5.1.2600 Service Pack 3
Platform ID = 2 (NT)
Service Pack = 3.0
Suite = 0x0140
Product Type = 1
Architecture = x86

#8
clausqp

clausqp
  • Member
  • 2 posts
  • Joined 04-May 05
If anyone is interrested You can find my tool for BITS download administration (including source code) here:
My projects Webpage
You will also find the wrappingBITS.msi package there, which is usefull .NET wrapper around the BITS COM interface.
Hope any of You guys will find it usefull, I have.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users