Sorry, that should be the "-O" option. For example: curl -O http://---------------------/file.zip
.. will download the file and name it "file.zip". The "-o" option is only if you want to name the local file ("-o local.zip"). To provide an example, the WGET.BAT wrapper should be fairly straightforward: curl -O %1 On 2/13/08, Jim Hall <[EMAIL PROTECTED]> wrote: > On 2/13/08, robinson-west user <[EMAIL PROTECTED]> wrote: > > How do I use curl with freedos update? The first trick was finding > > curl. Copying curl over wget prevents fdupdate from crashing, but > > it doesn't make the updater work. On the todo list there is make > > fdupdate able to use curl, is there a post 0.52 update? > > > > > > Looks like fdupdate is just doing a simple shell call to wget: > > >> SHELL "wget " + UpdateChannel + "/fdupdate.tab" > > > So, if wget isn't working for you but curl is, then one possible > workaround is to write a wrapper for curl. The difference is that: > > >> wget http://---------------------/file.zip > > will download a file called "file.zip". However, doing this: > > >> curl http://---------------------/file.zip > > will spew the contents of file.zip to stdout. Unless you use the "-o" > option. So that's the wrapper. > > Since fdupdate isn't looking for wget.exe, just allowing the system to > pick the executable program, you can do this with a simple bat > wrapper. Or you can write a C program wrapper. > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user