Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Aug 2003
    Location
    Toledo, Ohio, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Closing programs w/script file (XP Pro SP1)

    Greetings!
    Can someone show me how to create a script or .bat file that can run from desktop icon that will close all non-relevant programs ? I have a firewall, NAV, wallpaper, icon, etc programs running in the background that give me no problems, but when I try playing a graphics-intensive game, the graphics will periodically become jerky.. So I manually exit/close those programs. Is there a script that will do it for me? And on the inverse, is there another script or .bat file that will restart those same programs or would I have to reboot?
    My system is 950 Mhz, 512 megs RAM
    Thanks for your help!

  2. #2
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    I've thought about doing that, using AutoIt. I think it's doable, but fiddly. To add to the complexity, I would also want to stop some services. So, it's very firmly on the backburner for now.

    A simpler opton is to create a new games only user, with minimal items loaded at login. And if you're really keen, you could reboot, using a games only hardware profile, with surplus devices and services disabled. To go down this route, start at Black Viper's Web Site (and tread carefully).
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  3. #3
    New Lounger
    Join Date
    Aug 2003
    Location
    Toledo, Ohio, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    I like your idea of using AutoIt and have just finished downloading it. I'll post my results (which I hope are good)!
    Regarding creating a new profile, I had a fellow coworker mention that idea too. Since I already have five profiles created (one for each family member), I tried just modifying one of them. I guess I don't exactly know how because it didn't work (thankfully, I didn't mess up my system in the process). I have at least four programs that are set to automatically load at startup. How do I configure another user profile to not load these? I'm sure I can safely assume that I must have Administrator privileges which my account does. Where do I go from there?
    Thanks in advance for your help!

  4. #4
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    Like I said, it's likely to prove fiddly, even with AutoIt. Probably best to tackle it in bite size chunks. And <img src=/S/rtfm.gif border=0 alt=rtfm width=24 height=23> - well worth the effort.

    I use Mike Lin's Startup Control Panel to manage startup items, and you can also use Windows own msconfig.exe. (There are other alternatives, and R2 recently mentioned a couple of them, with a great explanation of what goes on, but I can't find it <img src=/S/sad.gif border=0 alt=sad width=15 height=15>) Discussions and links in the threads <!post=Excess programs running,278156>Excess programs running<!/post> and <!post=Startup items,what are they?,275403>Startup items<!/post> might help too.

    As an admin, you can configure common startup items (and those for yourself) easily. To configure user specific startup items for other users, the simplest (only?) way is to login as the user concerned.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  5. #5
    New Lounger
    Join Date
    Aug 2003
    Location
    Toledo, Ohio, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    Just a follow-up of a previous post - I have been so busy this week (and will continue being busy the rest of the week <img src=/S/crazy.gif border=0 alt=crazy width=15 height=15> ) that I haven't even been able to install AutoIt much less check it out. But I will definitely keep everyone posted as to the results! Hopefully, I'll have some time to check it out within the next three or four days! Or I could really get dedicated and deprive myself of sleep! <img src=/S/yawn.gif border=0 alt=yawn width=15 height=15> Nah, maybe not.

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Closing programs w/script file (XP Pro SP1)

    I'm not entirely happy with the principle of forcibly terminating unwanted programs, because you might get some data corruption as a result. I've done some work on this using SysInternal's PSLIST (to list running processes) and PSKILL (guess what this does!), to terminate a screen-saver as soon as it cuts in, and it's successful -- but I wouldn't really want to kill programs like Outlook or Outlook Express (for example) which really should be closed down in an orderly fashion.

    Maybe I'm just being over-cautious?
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    I agree. And that's why the AutoIt approach, while doable, would be fiddly, working on the assumption that seaweed has a known set off programs that [s]he wants to dispense off with a single command. Each program would need it's own set of commands to automate the normal manual close routine. Services would be marginally simpler, with a common "stop service" subroutine for a list of services to be killed off.

    And then there's the fun part - maintenance. <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15> Whenever the program set changes, or any of their closing dialogs change the AutoIt script will need a corresponding change.

    The more I think about it, the more a games user, with a games hardware profile (optional), makes sense. Far fewer dramas in the long run.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  8. #8
    New Lounger
    Join Date
    Aug 2003
    Location
    Toledo, Ohio, USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Closing programs w/script file (XP Pro SP1)

    I downloaded both AutoIt and StartupCPL. I have installed and used StartupCPL and it solves my problem. The interface has seven easy-to-use screens, and selecting what programs to run under what user is very simple <img src=/S/smile.gif border=0 alt=smile width=15 height=15> ! Since my aspirations currently exceed my knowledge, going this route is the best way for now! Thanks for all the help, cautions, and suggestions! <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15> I really appreciate it!

Posting Permissions

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