Results 1 to 24 of 24

Thread: Task Schedular

  1. #1
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default Task Schedular

    Hi
    I know this topic should be posted in different section, but as its releated to Task scheduling which many home 500 users use, i am posting it here

    I am using windows 7 and want to use Task Schedular to open a simple notepad file when i log on

    For that i created the task and even made sure that every option is set proper, still task did not run even once. i am testing this as i am shifting to Home500 soon.

    what the problem can be ?

    Any Idea ?
    www.marathikavita.co.in

    Internet: BSNL UL 750+ Plan (Type II DNA-A211-I)
    OS: Legal MS Windows 7 Ultimate 64 bit
    Dynamically Different

  2. #2
    The Wizard meetdilip's Avatar
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    8,563

  3. #3
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by meetdilip View Post
    Thanks for this..i loved it...simple and neat...but i am still not able to figure whats wrong with my windows 7 task schedular

  4. #4
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    check the syntax in your text file, it will only be "executable" by the scheduler if it has an extension like .bat or .exe.

    Anyway, it's almost always a lot easier to just use a 3rd party scheduler like free download manager

  5. #5
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by rsen View Post
    check the syntax in your text file, it will only be "executable" by the scheduler if it has an extension like .bat or .exe.

    Anyway, it's almost always a lot easier to just use a 3rd party scheduler like free download manager
    so u mean to say that i cant use TS to open a "text file" ??

    a text file has *.txt extension..so it wont open ?

  6. #6
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    That's right, scheduler will not be able to run a text file.
    If you have a batch script in the file, just rename it to <filename>.bat
    and it should run fine.

    Personally I use windows scheduler to run a batch script that kills Vuze (torrent software) at 7:45am.

  7. #7
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    2,969

    Default

    Try this code,

    Code:
    notepad.exe "root to the text file"
    Example:

    Code:
    notepad.exe "C:\Documents and Settings\Administrator\My Documents\run.txt"
    Or this code,

    Code:
    C:\WINDOWS\system32\notepad.exe "root to the text file"
    Example:

    Code:
    C:\WINDOWS\system32\notepad.exe "C:\Documents and Settings\Administrator\My Documents\run.txt"
    in the run box of the Windows Scheduler.

  8. #8
    The Wizard meetdilip's Avatar
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    8,563

    Default

    To reboot the modem, save the text file as .bat. Even in the Task Scheduler opens the text file, your modem does not reboot.

    If you liked the application, please consider a rep.

    Try this to create a batch file

    http://www.indiabroadband.net/bsnl-b...tml#post154907 (NU Configuration)
    Last edited by meetdilip; 11-14-09 at 08:00 PM. Reason: Automerged Doublepost

  9. #9
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    Quote Originally Posted by meetdilip View Post
    FreeByte task scheduler doesn't let you kill/terminate/close/shut down apps/processes it only lets you start them.

    I found free download manager to be slightly better, letting you hang up your modem at a specified time.

  10. #10
    The Wizard meetdilip's Avatar
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    8,563

    Default

    We can run a batch file disconnect.bat and disconnect the connection.

  11. #11
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    2,969

    Default

    And you can add "TASKKILL" command to close an application/process.

    Example:

    Code:
    taskkill /F /IM utorrent.exe

  12. #12
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    i know you can use taskkill; what I meant is most schedulers don't really have a good way to cleanly shut down apps at a predetermined time; so you have to run a batch file to kill it.

  13. #13
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    2,969

    Default

    I have seen free scheduler applications with all these commands built in. But they are harder the configure than BATCH file and Windows Scheduler.


    WakeupOnStandBy


    It disconnects the connection and shutdown/hibernate/stand by the system after that (doesn't close applications/processes).

  14. #14
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by Archer View Post
    Try this code,

    Code:
    notepad.exe "root to the text file"
    Example:

    Code:
    notepad.exe "C:\Documents and Settings\Administrator\My Documents\run.txt"
    Or this code,

    Code:
    C:\WINDOWS\system32\notepad.exe "root to the text file"
    Example:

    Code:
    C:\WINDOWS\system32\notepad.exe "C:\Documents and Settings\Administrator\My Documents\run.txt"
    in the run box of the Windows Scheduler.
    Thanks for this.... can u give me a link where i can find those command? I am .net programmer..so can make my own as per requirement..



    @ALL

    even .EXE is not running

    last time also i tried, but was not able to do it.so gave up(as its of no use that time).......but now i need it...cauz i will change my plan to Home500.

    here are the screen shots.








    here are the settings

    Quote Originally Posted by rsen View Post
    That's right, scheduler will not be able to run a text file.
    If you have a batch script in the file, just rename it to <filename>.bat
    and it should run fine.

    Personally I use windows scheduler to run a batch script that kills Vuze (torrent software) at 7:45am.
    Please paste contents of your script.
    Last edited by talktoanil; 11-14-09 at 08:28 PM. Reason: Automerged Doublepost

  15. #15
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    2,969

    Default

    Quote Originally Posted by talktoanil View Post
    Thanks for this.... can u give me a link where i can find those command? I am .net programmer..so can make my own as per requirement..

    I usually search the net when I need a command-line code.

    Microsoft command-line referance A-Z

    http://www.microsoft.com/resources/d....mspx?mfr=true

  16. #16
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by Archer View Post
    I usually search the set when I need a command-line codes.

    Link to Microsoft command-line referance A-Z,

    Microsoft Corporation
    thanks....i remember few year back..we both changed plans at same time u shifted to UL 1350 and me to UL 750

    which plan are u using now ?


    also please look at my screen shots and please tell if i did anything wrong in it..

  17. #17
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    taskkill /F /IM Azureus.exe

    That's it.
    Make a new text file, put that line in it, save it as "myKillVuze.bat", then add it to windows scheduler.

    hope this helps.

    Batch scripts are really simple if you are a programmer; you can find a very simple & good tutorial here with some useful examples.

    btw why is everything grayed out in your SS's ? Do you not have admin rights on ur comp ?
    Last edited by rsen; 11-14-09 at 08:43 PM. Reason: Automerged Doublepost

  18. #18
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by rsen View Post
    taskkill /F /IM Azureus.exe

    That's it.
    Make a new text file, put that line in it, save it as "myKillVuze.bat", then add it to windows scheduler.

    hope this helps.

    Batch scripts are really simple if you are a programmer; you can find a very simple & good tutorial here with some useful examples.

    btw why is everything grayed out in your SS's ? Do you not have admin rights on ur comp ?
    paste script with which you start Azureus....

    or
    do u use task schedular ? if so then please post screen shot...cauz if you take a look at my SC posted above..i cant find any wrong in it and still exe is not starting...

  19. #19
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    I don't use a script to start azureus, I use "free download manager" to schedule application starts/disconnects/PC shutdown etc.
    It's pretty easy to configure and mostly self explanatory.

  20. #20
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default thanks

    thanks rsen and Archer

    Testing now..will post if any problems.

    Any idea of which protocol is used my ADSL2+ routers ?
    I mean i have imran broadband helper which runs a script and router is restarted.

    So is it a telnet script ?

  21. #21
    Silver Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    314

    Default

    you don't need the telnet script, just set your scheduler to hang up at 7:45 (the option should be something like "hang up all connections".

    Free download manager.

    You can also set your PC to shutdown at this time if you want too.

    If you are using Vuze, make sure to get the scheduler plugin to make sure that even if you keep vuze on by accident it will not download/upload anything between 7:45am and 2am.

  22. #22
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    this is my bat file to shutdown windows 7.

    Code:
    call "C:\Windows\System32\shutdown.exe" /f
    Problem is , it just closes all open applications and then logs off, but not shutdown the system.


    I am using windows 7.

  23. #23
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    2,969

    Default

    Quote Originally Posted by talktoanil View Post
    thanks....i remember few year back..we both changed plans at same time u shifted to UL 1350 and me to UL 750

    which plan are u using now ?


    also please look at my screen shots and please tell if i did anything wrong in it..
    Yes, I remember. I am using Home 500 C+ from Nov 5.

    I am not familiar with Windows 7, so cannot help.

    Quote Originally Posted by talktoanil View Post
    this is my bat file to shutdown windows 7.

    Code:
    call "C:\Windows\System32\shutdown.exe" /f
    Problem is , it just closes all open applications and then logs off, but not shutdown the system.


    I am using windows 7.
    Try shutdown -f -s or shutdown -s.

  24. #24
    Platinum Member talktoanil's Avatar
    Join Date
    May 2008
    Age
    27
    Liked
    1 times
    Posts
    1,212

    Default

    Quote Originally Posted by Archer View Post
    Yes, I remember. I am using Home 500 C+ from Nov 5.

    I am not familiar with Windows 7, so cannot help.



    Try shutdown -f -s or shutdown -s.
    thanks.......

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
  •