Results 1 to 9 of 9

Thread: Starting/stopping LTC at specific times ...

  1. #1
    Join Date
    Dec 2007
    Location
    Pacifica, Calif (30mins from downtown San Francisco)
    Posts
    1,500

    Default Starting/stopping LTC at specific times ...

    I'm something of a Windows XP neophyte (what can I say, it's been all Mac and/or Unix), so I'm not 100 percent sure how to accomplish this:

    I have two *.led sequences I want LTC to run, one starting at around 3 p.m. and then ending at 6:25 p.m., and then the other starting at 6:30 and running until 10 p.m. I have the Windows machine on a lamp timer and it turns on at 3 and turns off at 10:30 (I have XP scheduled to do a shutdown at 10:15); the PS for the Triks/Triks-C is on the same timer.

    I know about XP's Scheduled Tasks, but it will only launch an application, which doesn't help me with the LTC parameters. How do I run something at a specific time that has that long string?

    TIA.

    \dmc

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne Australia
    Posts
    551

    Default Re: Starting/stopping LTC at specific times ...

    Could you run a batch file?

    ie create a text file called 'startup.bat'

    inside startup.bat put the ltc and parameters

  3. #3
    Join Date
    Dec 2007
    Location
    Pacifica, Calif (30mins from downtown San Francisco)
    Posts
    1,500

    Default Re: Starting/stopping LTC at specific times ...

    Quote Originally Posted by TimW View Post
    Could you run a batch file?

    ie create a text file called 'startup.bat'

    inside startup.bat put the ltc and parameters
    OK, that starts it ... what can I do to stop it so I can start another one?

    \dmc

  4. #4
    Join Date
    Nov 2007
    Location
    montreal,quebec
    Posts
    207

    Default Re: Starting/stopping LTC at specific times ...

    you could have 2 file like 300.bat and 1830.bat and use task scheduler in administrative tool in windows
    :DThanks !!

    Serge

  5. #5
    Join Date
    May 2007
    Location
    New Zealand
    Posts
    54

    Default Re: Starting/stopping LTC at specific times ...

    what I do is use a batch file to run ltc which uses a text file for commands.
    ie
    file name : start.bat
    c:\ltc.exe script.txt

    and then have another batch file that kills the ltc.exe task
    ie
    file name : end.bat
    tskill ltc.exe

    for more info google "tskill"

    so you could do as shocker suggests and use 2 batch file in scheduler to start ltc and another to end it.

    hope that helps
    cheers
    kiwichristmas

  6. #6
    Join Date
    Dec 2007
    Location
    Pacifica, Calif (30mins from downtown San Francisco)
    Posts
    1,500

    Default Re: Starting/stopping LTC at specific times ...

    Quote Originally Posted by kiwichristmas View Post
    for more info google "tskill"
    That's the puppy I was looking for.

    Thanks.

    \dmc

  7. #7
    Join Date
    Jul 2007
    Location
    Curtice Ohio
    Posts
    218

    Default Re: Starting/stopping LTC at specific times ...

    In XP - In the schedule task properties - Settings tab
    Under Scheduled Task Completed
    Check - Stop the task if it run for: (Set the duration)
    This will kill the app after the duration you set. Has worked every night for me so far.

  8. #8
    Join Date
    Dec 2007
    Location
    Pacifica, Calif (30mins from downtown San Francisco)
    Posts
    1,500

    Default Re: Starting/stopping LTC at specific times ...

    Quote Originally Posted by cobraman44 View Post
    Check - Stop the task if it run for: (Set the duration)
    That was going to be my next course of action. But tskill works, as long as you remember this:

    When using tskill don't put .exe in the command
    So, the line in the bat file would be:
    Code:
    tskill ltc
    \dmc

  9. #9
    Join Date
    May 2007
    Location
    San Dimas, CA
    Posts
    410

    Default Re: Starting/stopping LTC at specific times ...

    with in scheduled task you can pass command line switches. I do it all the time at work use the following syntax:

    cmd.exe /c "defrag.exe c: -a -f -v"

    that passes it the c: -a -f -v switches, you can pass as many as you like. I have some process that use 5 and 10 different switches.
    Truth is a three edged sword....
    Embassador Kash Vorlon Empire


    http://www.tgconley.com

Tags for this Thread

Bookmarks

Posting Permissions

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