Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 03:09:27 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Does not start if SOMEPROCESS is active  (Read 10988 times)
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« on: October 23, 2007, 12:53:39 pm »

Some critical programs (like burning software) slow down too much (old text: have some problems) if Jkdefrag is active. So I think it could be useful an option like this:

-p process
-p (process1 process2 processN)

(p for "pause")

old text:
-i process
-i (process1 process2 processN)

(i for "incompatible")


If any of these processes is running, JkDefrag should not start until the process is running. The processes could be checked every X seconds (I think a good value is 60-90).

It could be very useful for the screensaver mode or for automatic tasks.

EDIT:
idea from ABasketOfPups: it could be useful if the process check is done also while jkDefrag is running (for example to not slow down antivirus programs)
Logged

JamesOff
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #1 on: October 23, 2007, 03:23:58 pm »

Use the right tool for the job Smiley

I wrote this for you.
Logged
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« Reply #2 on: October 23, 2007, 04:47:40 pm »

Mmmhh.... I think it's impossible to use this batch to control the screensaver mode Wink You must change JkDefragScreenSaver.exe or JkDefragScreenSaver.src necessarily.
Logged

JamesOff
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #3 on: October 23, 2007, 05:16:25 pm »

True, I didn't give much consideration to the screensaver mode Smiley I don't use it myself though which is why I guess I missed it.

I still think adding that functionality into jkdefrag is "bloaty", although I'm not sure how else to fix it for the screensaver, other than possibly writing your own wrapper screensaver, which calls the jkdefrag one if appropriate...
Logged
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« Reply #4 on: October 23, 2007, 08:53:11 pm »

Mmmmhhh..... I think it could be simple..... do you know an easy way to do a .scr file that calls another program?

(a little OT: the fact Windows allows screensavers to execute files is not potentially dangerous?)
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #5 on: October 24, 2007, 12:07:29 am »

Quote from: "Lucas Malor"
Some programs have some problems if Jkdefrag is active. So I think it could be useful an option like this:

Thanks for sharing your idea, I appreciate it! I have put it on the list for v4 of JkDefrag.
Logged
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« Reply #6 on: October 24, 2007, 10:27:44 am »

Good! One of my mad ideas was a success! X-D

Anyway for now I'll search for a workaroud, helps from anyone is appreciated.

Thanks to JamesOff and to Jeroen :-)
Logged

ABasketOfPups
JkDefrag Supporter
***
Posts: 12


View Profile
« Reply #7 on: October 28, 2007, 07:14:31 pm »

This is a case where adding a bit of bloat to the code can buy you a lot more (or in this case, safer) functionality: since JKDefrag is sometimes going to be running for hours, you don't want to check at the beginning, via batch file, that another process is running. You want to check All The Time while JKDefrag is running, to be sure something with a conflict doesn't start halfway through the defragging.
Logged
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« Reply #8 on: October 29, 2007, 10:28:23 am »

Quote from: "ABasketOfPups"
You want to check All The Time while JKDefrag is running, to be sure something with a conflict doesn't start halfway through the defragging.


This could be an idea. JkDefrag could pause if one of the processes starts even after JkDefrag is started.

I suggested only to not start because usually I have problems with burning, ripping or scanning programs that doesn't have a "disable screensaver" option (so I must disable and re-enable it manually). But this could be very useful to avoid problems with antivirus programs, and so on Cheesy
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #9 on: October 29, 2007, 02:04:04 pm »

I'd like to stress that JkDefrag is designed to run on a fully functional computer and that there are no conflicts that I know of. Adding an option to JkDefrag to check for other programs running would be for performance only, so JkDefrag will not hamper the performance of those other programs. It is NOT needed to prevent "conflicts".
Logged
Lucas Malor
JkDefrag Supporter
***
Posts: 16



View Profile WWW
« Reply #10 on: October 30, 2007, 12:37:06 pm »

Quote from: "jeroen"
Adding an option to JkDefrag to check for other programs running would be for performance only, so JkDefrag will not hamper the performance of those other programs. It is NOT needed to prevent "conflicts".


That's right Smiley I think I caused some misunderstanding, writing about "incompatibility". I think it's better to choose -p as flag (for pause)
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #11 on: October 30, 2007, 09:18:40 pm »

Quote from: "Lucas Malor"
I think it's better to choose -p as flag (for pause)

Pause is allright, but maybe "yield" or "YieldForProgram" is closer to what it will do.

p.s. Version 4 of JkDefrag will be controlled through a small scripting language. The v3 commandline will still be there, but I will not add options to it.
Logged
sandycollie
Newbie
*
Posts: 1


View Profile
« Reply #12 on: June 05, 2009, 12:26:05 pm »

hi,

i am here and just thought this thread, i enjoy reading all posts
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!