VB, WSH or Batch to Launch Progam within two certains Times
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.
Re: VB, WSH or Batch to Launch Progam within two certains Times
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. ;)
Re: VB, WSH or Batch to Launch Progam within two certains Times
o m g that is lazy (of the teachers)
even so, i think that is possible with some vbs. or schtasks.exe to make a scheduled task.
Re: VB, WSH or Batch to Launch Progam within two certains Times
It's just to jog memory, we have decided against activating AD authenticaion For the moment
Re: VB, WSH or Batch to Launch Progam within two certains Ti
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):
Code:
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.
Re: VB, WSH or Batch to Launch Progam within two certains Times
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
Re: VB, WSH or Batch to Launch Progam within two certains Times
Thats the exact reason, but it just the thing about routines, classroom management blah blah blaa, this is what happens when they get rid of am form periods
Re: VB, WSH or Batch to Launch Progam within two certains Times
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
Re: VB, WSH or Batch to Launch Progam within two certains Ti
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.
Re: VB, WSH or Batch to Launch Progam within two certains Times
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 <insert> who can't be bothered
Re: VB, WSH or Batch to Launch Progam within two certains Times
lol i did it with the VB script adapting it, I am doing this to prove a point, i have had enough of chasing people thinking its techie but its just laziness