No javascript interaction needed on the webpage to download them. Not to advertise but I suggest GitHub or MediaFire as you can get direct download links to each file. ![]() The link isn't direct to the file, it requires you to 'click' a button to initializes the download. Furthermore, your code still would not have worked as stated by James C. Powershell has the ability to link commands on a simple command line, similar to batches & symbol, powershell has the for this job. Once it's finished running the code, it "Closes" that powershell window (Trying to explain it simple as possible). The main problem with this script is that the powershell.exe -c command will only run the code after it on one iteration of powershell. If anyone can help me get this working I'd appreciate it. I am not very sure where to store the file I'd like to download online so I uploaded it to a free file storage website. The above code will be repeated three times for each file I'd like to download. PowerShell.exe -Command "$args = -Command "Start-Process -Filepath "$PSScriptRoot/downloadtest.bat" -ArgumentList $args" PowerShell.exe -Command "$wc.DownloadFile($url, $outpath)" PowerShell.exe -Command "$wc = New-Object " PowerShell.exe -Command "$outpath = "$PSScriptRoot/downloadtest.bat"" I'm struggling with this as I'm unfamiliar with both batch files and powershell. I'm trying to use powershell commands for this within a. I'm trying to create a batch file that can download and run three files one at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |