Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why does this bitsadmin command fail?

bitsadmin.exe /transfer myDownloadJob /download /priority normal c:\Temp

It seems that it should work, but it gives me this error:

BITSADMIN version 2.0 [ 6.6.2600.2180 ]
BITS administration utility.
(C) Copyright 2000-2004 Microsoft Corp.

Unable to add file - 0x80070005
Access is denied.

NOTE: I am using bitsadmin.exe from this file: WindowsXP-KB838079-SupportTools-ENU.exe

share|improve this question
up vote 4 down vote accepted

The parameter at the end, C:\Temp, is the path of a file, not a folder. If you had nothing at C:\Temp, meaning no file or directory at that path, the remote file would be downloaded to a file named C:\Temp (no extension). If you have a directory at C:\Temp, you get the access denied message, because a new file cannot be created at that path.

In short, you need to change the parameter at the end to a full file path, something like C:\Temp\footer.html.

share|improve this answer
Thanks! That worked great. – djangofan Dec 9 '11 at 20:03
It also doesn't accept relative paths for some reason, so it really needs to be an absolute file path. – Kim Gräsman Apr 20 '15 at 19:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .