Jump to content

VB, WSH or Batch to Launch Progam within two certains Times


Recommended Posts

Posted

Ok teaching staff complaining that they cannot get into the routine of opening SIMS 1st Period and 5th (even a year on)

 

So I need a script that runs "C:\Program Files\SIMS\SIMS .net\SIMSLoad.exe" "C:\Program Files\SIMS\SIMS .net\Pulsar.exe"

 

that runs between 8:30-9:30 and 2:15-3:15

 

Just needs to run in the logon scripts.

 

Any ideas Guys because I just can't seem to do it.

Posted

I think that with the new upgrades that are scheduled for Sims that it will have

AD authentication and therefore when they go to open Sims via their shortcut they will no longer have to type in their username and password OK.

 

Means it might be better to wait for the updates. ;)

Posted

Is it really that hard for someone to double click on an icon after logging on?

 

Anyhow, as an interesting exercise to run a command if the current time is between two specified times you could try this (.vbs):

objTimeNow = Time()
objStartTime = TimeValue("8:30 AM")
objEndTime = TimeValue("9:30 AM")

If ((objTimeNow >= objStartTime) and (objTimeNow <= objEndTime)) Then
Set objShell = CreateObject("WScript.Shell")
strCommand = "%systemroot%\notepad.exe"
objShell.Run strCommand
End If

 

Obviously you'll need to expand this to include the afternoon slot.

 

No idea if it'll work in a logon script though.

 

Iain.

Posted

Why do they need it? Is it for the registers?

 

If so, get the leadership / head to remind them that it is a LEGAL requirement (therefore not your problem whatsoever)

 

fooby

Posted

Yeah we have done similar here, the teachers register every single lesson on sims and the afternoon registration isnt with a tutor, its the period 4 lesson register that is the PM legal register.

 

However the management here is such that there is a 'naughty list' of name / shame of people not doing the registers. that seems to work here

 

fooby

Posted

I've just checked and the script doesn't run as a logon script, however it does if you add it to User Configuration/Administrative Templates/System/Logon/Run these programs at user logon in a GPO. Well it works for opening notepad if a user logs on at a specific time of day at least!

 

Iain.

Posted

Why not just put it in the Startup folder for the people who want it? :D

 

They don't have to log in if they don't want sims, and you've opened sims at the same time for the lazy who can't be bothered

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 47 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...