title: how to pass credentials of a URL to bitsadmin command for downloading a file from the URL
body: <p>I am new to windows scripting, I need to download a file from Sonatype Nexus repository, using "bitsadmin" command. I have tried " bitsadmin  /transfer mydownloadjob  /download  /priority normal <a href="http://repolocation/filename.txt" rel="nofollow">http://repolocation/filename.txt</a> C:\tmp\filename.txt " command in my command prompt. I am getting error. the reason may be because I didn't pass credentials for the repository. can you please provide me a way to pass credentials to the command, so that I can access the URL and download the file from  command line (for example, take username and password for accessing <a href="http://repolocation/filename.txt" rel="nofollow">http://repolocation/filename.txt</a> are admin and mypwd respectively). FYI, I am able to download file from a URL, which doesn't have any authentication, with the same command</p>