| 1. |
Solve : binary download script? |
|
Answer» this will let you download binary files \text files without third party programs the syntax would be %0 get www.download.com/file.zip C:\file.zip @echo off There is no DO construct in batch except in the context of a FOR statement. Why the batch code wrapper? VBScript can accept and process arguments. You can even put up inputboxes to prompt the user. Happy coding. Quote from: Sidewinder on July 19, 2008, 08:50:56 AM There is no DO construct in batch except in the context of a FOR statement. In the code below, it has the INTERESTING effect of sabotaging the IF test, so that it always tests true. In this code, "three" is always echoed, whatever is input. I guess this unsensational failure mode made it hard to for the OP to spot. It is odd because at the command prompt, you see Code: [Select]C:\>if "black"=="black" do echo YES 'do' is not recognized as an internal or EXTERNAL command, operable program or batch file. Code: [Select]@echo off set /p choice=Pick a number? IF "%choice%"=="3" do ( echo three ) |
|