• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

how to write a vbscript to call a bat file

I have a vbsript and will to call a .bat file, can someone help me with the coding.
0
tonyckx
Asked:
tonyckx
  • 2
1 Solution
 
vinnyd79Commented:
Set WShell = CreateObject("WScript.Shell")
WShell.Run "c:\test.bat"
0
 
tsravankCommented:
retval = Shell("bat file", vbMaximizedFocus)
0
 
vinnyd79Commented:
That works in vbscript?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now