Installing software direct from website through batch file.
Is it possible to call an exe from a website through a batch file? i.e. Can I put http://get.videolan.org/vlc/2.1.0/win32/vlc-2.1.0-win32.exe into a batch file line to be run when I run the batch file? I've a number of bits of software to install and I'd like to call this as well. Is it possible? Do I need other code round it?
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
nheyne
11 years ago
You can do it with BITS, but not with the URL you provided since it is actually a redirect. Click on the link to show the mirrors and get the actual URL of the file. In this case, here is what I came up with that worked for me (the "JobName" is a variable that you can edit):
bitsadmin.exe /transfer "JobName" http://ftp.osuosl.org/pub/videolan/vlc/2.1.0/win32/vlc-2.1.0-win32.exe C:\Users\YourName\desktop\vlc.exe