Re: request

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek, how do you get rid of the dos window that pops up waiting on a 
return?

george
> The folder that they are in is the built-in list of the files. Use
> walk_dir() to get that list, one file at a time, and use that info
> to create a temporary DOS batch file, which you then pass to
> system().
> 
> }}}
<eucode>
>    integer vBH
> 
>    function GotFile(sequence pPath, sequence pDirEnt)
>       printf(vBH, "bindw %s\n", {pPath & '\\' & pDirEnt[D_NAME]})
>    end function
>    
>    vBH = open("c:\\temp\\batch.bat", "w")
>    puts(vBH, "@echo off\n")
>    printf(vBH, "echo Binding all the files in %s\n",{"c:\\progfolder"})
>    walk_dir("c:\\progfolder", routine_id("GotFile"), 1)
>    close(vBH)
>    system("c:\\temp\\batch.bat")
> </eucode>
{{{

>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu