+ Post New Thread
Results 1 to 11 of 11
Scripts Thread, VB, WSH or Batch to Launch Progam within two certains Times in Coding and Web Development; Ok teaching staff complaining that they cannot get into the routine of opening SIMS 1st Period and 5th (even a ...
  1. #1
    BKGarry's Avatar
    Join Date
    Mar 2006
    Location
    Kent
    Posts
    923
    Thank Post
    94
    Thanked 119 Times in 96 Posts
    Rep Power
    47

    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.

  2. #2

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,920
    Thank Post
    1,193
    Thanked 1,063 Times in 754 Posts
    Rep Power
    329

    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.

  3. #3
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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.

  4. #4
    BKGarry's Avatar
    Join Date
    Mar 2006
    Location
    Kent
    Posts
    923
    Thank Post
    94
    Thanked 119 Times in 96 Posts
    Rep Power
    47

    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

  5. #5
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    187
    Thank Post
    28
    Thanked 93 Times in 53 Posts
    Rep Power
    32

    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.

  6. #6
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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

  7. #7
    BKGarry's Avatar
    Join Date
    Mar 2006
    Location
    Kent
    Posts
    923
    Thank Post
    94
    Thanked 119 Times in 96 Posts
    Rep Power
    47

    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

  8. #8
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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

  9. #9
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    187
    Thank Post
    28
    Thanked 93 Times in 53 Posts
    Rep Power
    32

    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.

  10. #10

    Join Date
    Jul 2007
    Location
    Devon
    Posts
    233
    Thank Post
    8
    Thanked 9 Times in 8 Posts
    Rep Power
    16

    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?

    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

  11. #11
    BKGarry's Avatar
    Join Date
    Mar 2006
    Location
    Kent
    Posts
    923
    Thank Post
    94
    Thanked 119 Times in 96 Posts
    Rep Power
    47

    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

SHARE:
+ Post New Thread

Similar Threads

  1. Removing the Quick Launch Tool Bar
    By Grommit in forum Windows
    Replies: 3
    Last Post: 12th January 2007, 10:16 AM
  2. Logon times
    By wesleyw in forum How do you do....it?
    Replies: 4
    Last Post: 25th September 2006, 06:45 AM
  3. Login Times
    By faza in forum Wireless Networks
    Replies: 12
    Last Post: 18th September 2006, 09:06 AM
  4. CMS im alittle behind the times
    By danIT in forum Web Development
    Replies: 4
    Last Post: 3rd May 2006, 08:54 AM
  5. GTCO Launch a new Voting System
    By Kilas in forum IT News
    Replies: 11
    Last Post: 18th April 2006, 08:49 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •