-1

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.

Vishnu
  • 9
  • 2
  • 1
    check 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 Answers1

-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