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

Comments

Please log in to comment

Answers

0

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
Answered 11/06/2013 by: nheyne
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share