Execute a batch file 
Author Message
 Execute a batch file

I have a batch file that i need execute periodically.

How can i execute from VBS?

thanks in advance,

Rogrio



Mon, 20 Sep 2004 00:46:29 GMT  
 Execute a batch file
If all you need is for a batch file to run periodically, I'd suggest to you
just setup a scheduled task in the Task Scheduler.  If you need to do more
than that and you need to run it from a script, you can do the following:

 Dim WSShell
 Set WSShell = CreateObject("WScript.Shell")

 Dim RetVal
 RetVal = WSShell.Run("C:\myscript.bat", 1, True)

Check out the following for more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/scri...
ml/wsmthrun.asp

Ken


I have a batch file that i need execute periodically.

How can i execute from VBS?

thanks in advance,

Rogrio



Mon, 20 Sep 2004 04:41:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. execute a batch file from a web page

3. HELP : To execute a batch file.....

4. How to execute a batch file within a VB 5 application

5. Executing DOS batch files in VB4/32 bit

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

7. Executing a batch file from a VBS.

8. Problems using WScript to execute a batch file

9. Executing a Batch File on another Computer

10. Using wsh and psexec to remotely execute a batch file and capture output to a local file

11. How do I exit to DOS and execute a batch file?

12. How to execute DOS batch file within ASP by using VBScript?

 

 
Powered by phpBB® Forum Software