1.

Solve : inputting data to another file with dos?

Answer»

hey all,


I need a batch file to INPUT certain data to another batch when run.

seems odd i know so let me explain.

i have a prgom that i have written that starts a batch file with 3 following add on's (shell ("c:\batch\mine.bat " + choice + " " + choice1 + " " + box.text)

the proble is that i want to have a stauts bar of the progress of this bacth file but VB won't let me do this with a PROGRAM or batch that has added on information on the end, there fore i require the 1st batch file to take the inputted date (%1, %2, %3) and autofill in a template so that VB can run the 2nd batch file with the correct data and with no added information on the command line.

any ideas as i'm stumped!!!All I FOUND was this template for the shell function which MAKES no mention of a status bar:

Code: [Select]Public Function Shell( _
ByVal PathName As String, _
Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _
Optional ByVal Wait As Boolean = False, _
Optional ByVal TIMEOUT As Integer = -1 _
) As Integer

Does your shell function work? Do your batch files work? More info needed. Create bat file one with parameters & echo out bat file two with the parameters filling in the blanks.



Discussion

No Comment Found