Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 10:28:32 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: Close automatically when no GUI is shown  (Read 1747 times)
Steve Coffee
JkDefrag Hero
*****
Posts: 53


View Profile
« on: April 09, 2009, 03:53:42 am »

Can MyDefrag tell when it's GUI is blocked by the operating system?  Remotely initiating MyDefrag (which I am working on for MyDefragGUI) normally prevents any interaction with the desktop.  This is also true in certain cases for initiation via a service or scheduled job.  It would be nice if MyDefrag could detect this and skip any pauses for user interaction.  Without the usual MyDefrag interface, a process in this state will have to be killed manually via task manager.  Also, future MyDefrag runs will fail silently without explaining the problem to the user (unless they go read the log file).
Logged
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« Reply #1 on: April 09, 2009, 07:46:38 am »

Also, future MyDefrag runs will fail silently without explaining the problem to the user (unless they go read the log file).
This alone is a big problem IMO... it makes absolutely no sense as to why MyDefrag won't start until I look at the log file and find that the MyDefrag process I just closed was still running in the background.

Two things really need to be fixed in regards to the way that's handled: 1) a window really should pop up any time MyDefrag closes without user interaction or the script completing, saying something to the effect of "I closed because...". That may even help figure out why MyDefrag crashes after analysis of some drives. And 2) when MyDefrag is closed while processing, it should pop up a "Please wait while MyDefrag shuts down..." window so people know it's actually still running but just processing the last file.

IDK if that's going to be something added during beta, but I really think it should be, it's just weird behavior as it is now. But that's what forums are for, right? Wink
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #2 on: April 14, 2009, 03:58:35 pm »

Can MyDefrag tell when it's GUI is blocked by the operating system?
MyDefrag is specifically designed so it can be used totally automatically, in the background without desktop if so desired. It does not ask any questions of the user, and can be scheduled as a task and/or executed remotely with for example the free Microsoft PsExec utility. Refusing to run if the GUI is blocked would actually negate these capabilities.

Tip: see the WhenFinished setting to automatically stop the program when it is finished.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: April 14, 2009, 04:12:52 pm »

1) a window really should pop up any time MyDefrag closes without user interaction or the script completing
MyDefrag is designed to always continue and run until a script is finished. And then it will do what you specify with the WhenFinished setting.

Quote
2) when MyDefrag is closed while processing, it should pop up a "Please wait while MyDefrag shuts down..."
Yes, that's possible and I will implement it sometime in the future.
Logged
Steve Coffee
JkDefrag Hero
*****
Posts: 53


View Profile
« Reply #4 on: April 14, 2009, 07:42:58 pm »

Can MyDefrag tell when it's GUI is blocked by the operating system?
MyDefrag is specifically designed so it can be used totally automatically, in the background without desktop if so desired. It does not ask any questions of the user, and can be scheduled as a task and/or executed remotely with for example the free Microsoft PsExec utility. Refusing to run if the GUI is blocked would actually negate these capabilities.

I agree, Jeroen.  I was not suggesting that MyDefrag should stop if there was no GUI.  I was suggesting that if no GUI was present, it should NOT stop and wait for user input, since that would be impossible for the user to provide.  I have written a remote initiation process for MyDefragGUI that works along the same lines as PsExec.  I just modified it to filter out the Pause() and WhenFinished(wait) items from the scripts as it pushes them to the remote machine.

I have a web page set up for MyDefragGUI.com, but I am waiting out some DNS and other configuration timeouts before it will be live..
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #5 on: April 15, 2009, 06:41:16 pm »

I have a web page set up for MyDefragGUI.com
Wauw! I'm impressed. Spending real money on a domainname shows that you truly like my little defragger, even though it is still in beta. You have made my day!
Logged
Steve Coffee
JkDefrag Hero
*****
Posts: 53


View Profile
« Reply #6 on: April 15, 2009, 07:48:21 pm »

Spending real money on a domainname shows that you truly like my little defragger, even though it is still in beta.

I DO like your little defragger.  I think contributing a GUI is the least I can do, considering that I am using your defragger for free, not to mention all the other free software we all benefit from.  I have a new version ready, but I thought it might be nice to use my bandwidth instead of yours.  (How much bandwidth do you use, by the way?  Maybe I can help a bit...)
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #7 on: April 16, 2009, 03:54:20 pm »

How much bandwidth do you use, by the way?  Maybe I can help a bit...
I don't have a number in front of me, but don't worry about it, the banners at the top and bottom of every page on the website are paying for it.
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!