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


Photo

executing multiple files from vbscript

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sanjeev18

sanjeev18

    Great Helper

  • Member
  • Pip
  • 71 posts
  • 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

#2
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,418 posts
  • 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
    Act.Run("Mspaint"),1,True
   Else
'->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 



GunSmokingMan






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN