sequential processiong of programs

Discussion in 'Software' started by rchapelle, Sep 26, 2003.

  1. rchapelle

    rchapelle Private E-2

    I have 3 programs that I run on a regular basis: Adware, Spybot, and Emptemp. The first two use quit a bit of CPU. I would like to be able to create a program that calls the first exe1and then test until exe1 is complete before running exe2 etc. My objective is to make one program call and then have the 3 programs listed above run in sequence.

    Help would be appreciated. I do have a basic understanding of the structure of programming but have never written a program in the PC world.

    Thanks,

    Rich
     
  2. Kodo

    Kodo SNATCHSQUATCH

    how about running all of them in a low CPU priority?
     
  3. rchapelle

    rchapelle Private E-2

    That would require me launching program1, going to task manager, lowering the priority and then to program2 etc. based on my knowledge at this time. I was hoping that I could automate the process, I like the low priority setting approach, with a single program call.

    Thanks!
     
  4. Kodo

    Kodo SNATCHSQUATCH

    no.. you can make a batch file to do it all for you..

    here's command for a batch file that will open ms paint and file zilla at low priority

    -----------
    cmd /c start /low %SystemRoot%\System32\mspaint.exe

    cmd /c start /low C:\Progra~1\FileZilla\filezilla.exe
     
    Last edited: Sep 26, 2003
  5. Adrynalyne

    Adrynalyne Guest

    Ahhhh...I forgot about that.

    Cool tip.
     
  6. exeter_acres

    exeter_acres Sergeant

    The trouble I see is that both AdAware and Spybot need user input once they are launched.....

    or can they be set to just run....?
     
  7. goldfish

    goldfish Lt. Sushi.DC

    Have a look in the documentation, im going to do the same so i can write a nice batch file to clean up my parents PC at regular intervals rather than me having to go over and do all this crap every time the thing slows down!
     
  8. exeter_acres

    exeter_acres Sergeant

    Also...I can't remember in a batch file how to make it wait to start one app until the first app is done....

    is it just "wait"
    I can't remember...
    cuz Kodo's batch info is great, but it starts both apps at the same time......
     
  9. Wisewiz

    Wisewiz Apprentice's Sorcerer

    Yeah, start /wait makes the program run and then the next line of the bat file doesn't start until the start /wait line program is finished.
     
  10. rchapelle

    rchapelle Private E-2

    They both have setting that the user can define before they are launched, after that the can be run without user intervention. Does anyone have a small program that they have written, I think that I can figure out how to automate the two listed above if I have a sampe to work from.
     
  11. Kodo

    Kodo SNATCHSQUATCH

    I already posted batch file code.. just copy and paste into a text file and call it "something.bat"
     
  12. goldfish

    goldfish Lt. Sushi.DC

    and then stick it in "scheduled tasks" or whatever and set it to run silently, or somthin g :)
     
  13. exeter_acres

    exeter_acres Sergeant

    OK...I have spybot so it will run automatically...but for the life of me I can't get ad-aware to run without intervention....

    any ideas??
     
  14. rchapelle

    rchapelle Private E-2

    There have been good ideas, but none that I could finish with:
    Kodo, I opened a text doc, copied your code in (inserting Adware and Spybot, closed as "One.bat" Wen to the RUN CMD line and recieved a message that the file could not be found. I browsed to my desktop, where stored One.bat, it was not shown on the desktop while I was in browse mode, it is there.

    I also included the Start / Wait statement, I like the feature, it is what I am trying to accomplish .... single thread the programs.

    I looked at the StartDelay program, it is run at startup time and then time delays the release of files which is a good feature. I began this journey because I run these files several times during the day without rebooting. I wanted to be able to excute them in sequence with one program on demand.

    I am learning much, that you all for you continured efforts ....
     
  15. exeter_acres

    exeter_acres Sergeant

    here is the text from my batch file that works.... and waits for the first program to finish befor the second starts


    cmd /c start /wait C:\Progra~1\Lavasoft\Ad-awa~1\Ad-aware.exe
    cmd /c start /wait C:\spybot\SpybotSD.exe



    notice I had to edit the directory "Program Files" down to "progra~1" (without the quotes) to get it to work.....

    still can't get ad-aware to run without clicking on the "next" button
     
  16. shankha

    shankha Private E-2

    Yes

    Yes Yes
     
  17. Kodo

    Kodo SNATCHSQUATCH

    my bad... i forgot to tell you that you needed to edit the path locations like exeter did in his post...
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds