/build/static/layout/Breadcrumb_cap_w.png

How to run multiple VBS scripts in sequential order via k1000 scripting

Hello

I have about 4 scripts I need to run in sequential order to my users when they are logged off at night. It is too much to do in 1 big VBS so I broke it up into 4 smaller ones. Most of them are software installs/uninstalls + regfixes and DLLs. Is there a way to do this in 1 job in k1000 scripting where it calls the VBS in sequential order when the previous is complete?

Earlier I had it so the last command in my VBS would call the next VBS but it was sloppy and I did not like it. Not to mention it did not work when the user was logged off.

As I am typing this I figured it may be possible to do this by making batch files that call each VBS?

thanks for any help!

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: SMal.tmcc 11 years ago
Red Belt
0

Since you are doing this at night just set the time for the script to execute about 15 minutes apart.


Comments:
  • that's what i was trying to avoid just for organization reasons. - areiner 11 years ago
  • You can do what dugullett recommends. With each job as it completes, place a small txt file in like c:\windows\temp and have the next job look to see if this file exists. - SMal.tmcc 11 years ago
  • i like this idea....will be testing soon. Do you think I should include that in the VBS itself or make it a remediation - areiner 11 years ago
    • would be better as a remediation, you know the job completed. Also if the chain breaks, you can tell by what files are there where it broke. - SMal.tmcc 11 years ago
  • not seeing an option in remediation to create a file? Brain fart, what am I missing? - areiner 11 years ago
    • upload the txt file as a dependency and copy to temp on remidiation. - SMal.tmcc 11 years ago
  • I'm really sorry but im going to need your help here...i uploaded it as a dependency, now what do i choose in the remediation to copy it to the temp directory? - areiner 11 years ago
    • launch a program
      directory $(KACE_SYS_DIR)
      file xcopy.exe
      parameters $(KACE_DEPENDENCY_DIR)\step1done.txt c:\windows\temp - SMal.tmcc 11 years ago
  • thx! - areiner 11 years ago
    • If you didn't want to upload all the .txt files you can change/create a reg key for the first task on "Remediation Success", and then on the 2nd task "Verify" that reg key exists. So on and so on..... - dugullett 11 years ago
Posted by: smoothdude11 11 years ago
White Belt
0

I have typically used one batch file which uses call each of the vbscripts using the Start /wait command.  This means that it will wait until one is finished and then immediately launched the second one.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ