How to create a batch file that supports almost all Windows OS for downloading an EXE file to a specified location and replace the existing EXE file from an FTP server having user authentication.
Asked
Active
Viewed 309 times
-1
-
1check this: https://stackoverflow.com/questions/28143160/how-can-i-download-a-file-with-batch-file-without-using-any-external-tools – npocmaka Mar 13 '20 at 06:49
-
Do you known you could embed external exe tool directly into the batch file? On first bych runtime on specific machine batch test if tool already extracted, or extract it there. – user2956477 Mar 13 '20 at 12:08
-
1@npocmaka Thank you for your replay. i tried "certutil.exe -urlcache -split -f "ftp://domainname.com/filename.exe" filename.exe" , But it's not downloaded the file. Result Showing : "-URLCache command completed successfully." . – Vishnu Mar 16 '20 at 05:12
-
@Vishnu - then check the ftp command. – npocmaka Mar 16 '20 at 10:09
1 Answers
-2
You might wanna check out bitsadmin. It's able to download files from servers. Here's a link to a discussion on bitsadmin bitsadmin discussion link
It tells how do use bitsadmin to download with a pass/user

Andly Kwan
- 61
- 1
- 7
-
-
@user2956477 - it's been "deprecated" for the last three versions of Windows. I don't believe it's going anywhere. That said, I'm downvoting because link-only answers should be discouraged. – SomethingDark Mar 13 '20 at 13:22