executing ms-dos batch files 
Author Message
 executing ms-dos batch files

Pardon my noob questions but I need some help:

I need to execute several ms-dos batch files from within a
VB script.  I am trying to use the RUN command (RUN [/N]
MS-DOSCommand | ProgramName) but the compiler doesn't like
what I am doing.  Any advice?



Tue, 28 Dec 2004 01:34:12 GMT  
 executing ms-dos batch files

Shell("C:\TEXT.bat", vbHide)

Quote:
>-----Original Message-----
>Pardon my noob questions but I need some help:

>I need to execute several ms-dos batch files from within
a
>VB script.  I am trying to use the RUN command (RUN [/N]
>MS-DOSCommand | ProgramName) but the compiler doesn't
like
>what I am doing.  Any advice?
>.



Tue, 28 Dec 2004 23:49:05 GMT  
 executing ms-dos batch files

Shell("C:\TEXT.bat", vbHide)

Quote:
>-----Original Message-----
>Pardon my noob questions but I need some help:

>I need to execute several ms-dos batch files from within
a
>VB script.  I am trying to use the RUN command (RUN [/N]
>MS-DOSCommand | ProgramName) but the compiler doesn't
like
>what I am doing.  Any advice?
>.



Tue, 28 Dec 2004 23:48:09 GMT  
 executing ms-dos batch files
In VBScript (runbat.vbs)

Dim shell
Set shell = CreateObject("WScript.Shell")
shell.Run "c:\yourbatch.bat"

S. A. Hasnut
MCSD, CIW A
It Magnet
http://itmagnet.com.au

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Wed, 29 Dec 2004 04:44:08 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Executing MS DOS batch files

2. Help: hiding a DOS window when executing a DOS batch file

3. question on hiding a DOS window when executing a DOS batch file

4. Executing DOS batch files in VB4/32 bit

5. How to open my local MS-DOS batch file

6. How do I call a ms-dos batch file from VB

7. Detecting end of shelled MS-DOS batch file

8. How do I execute a MS-DOS .bat file from VB

9. how to execute a batch file into a VBS file

10. DOS Batch File to Copy Files from an Access Application

11. Bad Command or File name when Shelling DOS Batch File

12. How to execute a batch file within a vbscript or activeX ftp object

 

 
Powered by phpBB® Forum Software