Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


executing multiple files from vbscript

- - - - -

  • Please log in to reply
1 reply to this topic



    Great Helper

  • Member
  • Pip
  • 68 posts
  • Joined 11-October 10
  • OS:Windows 7 x86
  • Country: Country Flag
hey guys i want to execute multiple files from vbscript but i dont know how to do that any help...
Please Help Others

How to remove advertisement from MSFN



    MSFN Master

  • Super Moderator
  • 2,244 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
Here a little demo script for you
1:\ open Notepad waits for it to close
2:\ When Notepad is closed a messagebox appears
to ask if you want to open Mspaint
Save As DemoRunApp.vbs
'-> Object 
 Dim Act :Set Act = CreateObject("Wscript.Shell")
'-> Open The First Item
  Act.Run("Notepad"), 1, True
'-> Yes No Messagebox 
   If MsgBox( _
    "Notepad has been closed. Would you like" & vbCrLf & _
    "To open Mspaint next?",4132,"Demo Yes No") = 6 Then
'->Yes Was Pressed
'->No Was Pressed
    Act.Popup "User cancel opening MsPaint, This dialog" & vbCrLf & _
              "will self close it self in 5 seconds.",5,"End Script",4128
   End If 


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users