1. request
- Posted by George Walters <gwalters at sc.rr.com> Oct 27, 2004
- 545 views
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
2. Re: request
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 28, 2004
- 540 views
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
3. Re: request
- Posted by Patrick Barnes <mrtrick at gmail.com> Oct 28, 2004
- 535 views
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
4. Re: request
- Posted by George Walters <gwalters at sc.rr.com> Oct 28, 2004
- 531 views
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 > > > >
5. Re: request
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 28, 2004
- 525 views
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
6. Re: request
- Posted by George Walters <gwalters at sc.rr.com> Oct 28, 2004
- 538 views
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> {{{ >
7. Re: request
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 28, 2004
- 523 views
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
8. Re: request
- Posted by George Walters <gwalters at sc.rr.com> Oct 28, 2004
- 533 views
Great, Thanks george