Hi Jeffrey, > I have been writing a batch file to change the serial number > of a floppy disk ( or other disk ) The batch file uses output redirection > rather heavily. The batch file does change the serial number, > but after a few uses it will give the error > Can not redirect output to file 'nul'. ( or whichever device or file is > being written to. ) > I am using kernel 2038.
... you create a debug script and then do: > debug < %tmp%\dbscript > nul > vol %1 > %tmp%\file2 > fc %tmp%\file1 %tmp%\file2 > nul > if not "%errorlevel%"=="0" goto success ... > edlin %tmp%\file2 < %tmp%\edscript > nul Edlin :-) Maybe obvious, but did you try using kernel 2040 instead? See the news on www.freedos.org/ for download URL and info. You can simply replace the kernel.sys file, no need to run SYS again as long as booting already worked okay anyway :-) Eric PS: Which shell do you use, FreeCOM command.com? Which version? ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user