I need a batch file that will process the <Enter> key after a command takes place that requires the Enter key to be pressed.
In this case, the batch file processes the unregistration of a dll and/or ocx file and the re-registration of others using "REGSVR <filename> /u" or without the /u. Then, the batch file call the underlying program that needs those dll's or ocx's.
Each time the unregister or register process occurs in the current batch file, the computer lists a message about it being successful (or rarely unsuccessful) and needing to press <Enter>. However, with the correct commands, and the need to use this often on a variety of files for each line of the batch file that uses the unregister and re-register commands, this is time-consuming. I need to automate this.
The normal syntax would have the "<Enter.Txt" at the end of the command line file to feed the contents of that text file (the Enter command) to the computer immediately for each line.
What is the content of the Enter.Txt file that is the equivalent of the <Enter" key? I've used this technique years ago when creating a batch file that would automatically enter a "Y" (for Yes) when formatting floppies. However, this should be either the <Enter> key or the "Carriage Return" command. However, I haven't been able to get it to work.
Any thoughts or suggestions would be appreciated.