Help:Running DOS commands from SHELL function 
Author Message
 Help:Running DOS commands from SHELL function

Anyone,
I am trying to run DOS apps through VB using SHELL command. I have no problem
getting executables to run. However, previously in DOS i might have a line in a
bat file that looks like:

     program.exe  file.tmp  file.out  

The program.exe is opening file.tmp, performing some action and writing to
file.out.  How do I put the line above in VB context? I know to start with:

      Shell (c:\command.com /c  c:\program.exe   "what goes here?"  >          
                 c:\file.out )

Thanks for your help.

- M. English



Mon, 08 Feb 1999 03:00:00 GMT  
 Help:Running DOS commands from SHELL function


Quote:
>Anyone,
>I am trying to run DOS apps through VB using SHELL command. I have no problem
>getting executables to run. However, previously in DOS i might have a line in a
>bat file that looks like:

try
  shell("program.exe  file.tmp  file.out ")

-------------------------------------------------------------



Tue, 09 Feb 1999 03:00:00 GMT  
 Help:Running DOS commands from SHELL function

Shell ( "c:\command.com /c  c:\program.exe   c:\file.out",  the window
state constant )

Shelly
--
Trying to help others here as I have been helped.



Tue, 09 Feb 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Run a DOS command and Get output of a DOS command in VB5

2. Problem executing DOS command using Shell function

3. Sequential run of DOS program via SHELL command

4. Running DOS's copy from a shell command in VB

5. Running DOS Shell in hidden window, or using vb command instead

6. Using Shell Command to Run DOS EXE

7. Command (DOS or NT Command Shell) Prompt

8. Command (DOS or NT Command Shell) Prompt

9. vb shell command to replace dos command

10. Command (DOS or NT Command Shell) Prompt

11. Command (DOS or NT Command Shell) Prompt

12. Command (DOS or NT Command Shell) Prompt

 

 
Powered by phpBB® Forum Software