1. request

I would like to  see a wild card facility in bindw. I don't look forward
to making a bat file and maintaining it for each of 600 programs. Rob is 
that a possibility?.... or does anyone else have a tool to do this?

george

new topic     » topic index » view message » categorize

2. Re: request

George Walters wrote:
> I would like to  see a wild card facility in bindw. I don't look forward
> to making a bat file and maintaining it for each of 600 programs. Rob is 
> that a possibility?.... or does anyone else have a tool to do this?

Perhaps you can make a small program that loops through all your files
and binds them. e.g.
<uecode>
    for i = 1 to ... 
        system("bindw " & name, 2)
    end for
</eucode>
{{{

The file names could be listed in a big sequence in your program,
or could be generated according to some numbering system.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: request

Or could be done with walk_dir...

On Wed, 27 Oct 2004 17:03:36 -0700, Robert Craig
<guest at rapideuphoria.com> wrote:
> Perhaps you can make a small program that loops through all your files
> and binds them. e.g.
> <uecode>
>     for i = 1 to ...
>         system("bindw " & name, 2)
>     end for
> </eucode>
{{{

> The file names could be listed in a big sequence in your program,
> or could be generated according to some numbering system.
> 
> Regards,
>    Rob Craig

-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

4. Re: request

Rob, does this mean that for each system(bindw....) in the loop that 
it's going to pop up a dos window and wait for a return? Any way, I 
didn't want to maintain the list anywhere. Too easy to overlook one when 
it is changing all the time.

george


Robert Craig wrote:
> 
> 
> posted by: Robert Craig <rds at RapidEuphoria.com>
> 
> George Walters wrote:
> 
>>I would like to  see a wild card facility in bindw. I don't look forward
>>to making a bat file and maintaining it for each of 600 programs. Rob is 
>>that a possibility?.... or does anyone else have a tool to do this?
> 
> 
> Perhaps you can make a small program that loops through all your files
> and binds them. e.g.
> <uecode>
>     for i = 1 to ... 
>         system("bindw " & name, 2)
>     end for
> </eucode>
{{{

> The file names could be listed in a big sequence in your program,
> or could be generated according to some numbering system.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: request

George Walters wrote:
> 
> Rob, does this mean that for each system(bindw....) in the loop that 
> it's going to pop up a dos window and wait for a return? Any way, I 
> didn't want to maintain the list anywhere. Too easy to overlook one when 
> it is changing all the time.
> 
> george
> 
> 
> Robert Craig wrote:
> > 
> > 
> > posted by: Robert Craig <rds at RapidEuphoria.com>
> > 
> > George Walters wrote:
> > 
> >>I would like to  see a wild card facility in bindw. I don't look forward
> >>to making a bat file and maintaining it for each of 600 programs. Rob is 
> >>that a possibility?.... or does anyone else have a tool to do this?
> > 
> > 
> > Perhaps you can make a small program that loops through all your files
> > and binds them. e.g.
> > <uecode>
> >     for i = 1 to ... 
> >         system("bindw " & name, 2)
> >     end for
> > </eucode>
{{{

> > The file names could be listed in a big sequence in your program,
> > or could be generated according to some numbering system.
> > 
> > Regards,
> >    Rob Craig
> >    Rapid Deployment Software
> >    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>
> > 

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().

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")


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

6. Re: request

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 message » categorize

7. Re: request

George Walters wrote:
> 
> 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>
{{{

> > 


Firstly, use system() with 2 as the second parameter. And the batch file
entries should like like ...

   printf(vBH, "call bindw %s\n", {pPath & '\\' & pDirEnt[D_NAME]})

Then when you run the program to create the batch file and run system(), 
start it like this ...

  exw mybatcher.ex <nul

It's the "<nul" that allows you to do unattended runs.

--
 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

8. Re: request

Great, Thanks

george

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu