Path: utzoo!utdoe!ontmoh!diamond From: diamond@ontmoh.UUCP (Gerald Diamond, 326-1661, ENV) Newsgroups: comp.os.msdos.misc Subject: lost filehandles- help Keywords: dos Message-ID: <663538590.26294@ontmoh.UUCP> Date: Thu Jan 10 20:16:30 GMT 1991 Distribution: world Organization: Ontario Ministry of Health -- GOMIG BBS, Toronto, Canada Lines: 57 I'm looking for some information/advice. I have a large-ish batch file which I use to run several of my oft-used applictions programs. Recently I noticed that after I ran Dbase VI 1.1 or Statgraphics (no flames on software choices please :-]) several time (about 12 or 13 actually) without rebooting I ran into trouble. I seem to have run out of file handles I use the following batch file to run the various applications and return to wherever I was. Whene I do not use the batch file I do not have this problem. (I assume this will happen with other software but I haven't had the patience to try it.) EXAMPLE OF BATCH FILE ROUTINE: BATCH FILE STARTS @ echo off if %1@==@ goto DEFAULT_PROCESS for %%g in (LIST-OF-PARAMETERS d D MORE-PARAMETERS) do if %%g==%1 goto %%g HANDLES NON_LIST PARAMETERS HERE STUFF :d ECHO PROMPT CD $P>C:\UTL\ZZ1.BAT PROMPT $N: COMMAND /C C:\UTL\ZZ1.BAT >C:\UTL\ZZ2.BAT PROMPT $P$G c: cd \db4 dbase /t CTTY NUL COMMAND /C C:\UTL\ZZ2.BAT CTTY CON DEL C:\UTL\ZZ?.* goto end MORE_STUFF :end END OF BATCH FILE If I remove the "CTTY NUL" & "CTTY CON" statements, the problem also disapppears, so it seems they are slowly eating up the file handles. My question is "why?" Any thoughts? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= diamond@ontmoh.uucp : A non-spokesman for everyone except me & my bike There's never enough time to do all the nothing you want. - Calvin