Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 01:29:02 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: WhenFinished(Exit) in custom OptimizeWeekly.MyD not functioning  (Read 874 times)
w0rd-driven
Newbie
*
Posts: 2


View Profile
« on: March 27, 2010, 08:53:07 pm »

To reproduce, just take OptimizeWeekly.MyD and add WhenFinished(Exit) underneath Description(). Run MyDefrag by executing the script directly using -d 2 as your arguments. This worked perfectly fine up until version 4.2.7.

Testing with AnalyzeOnly.MyD and removing the Pause() showed that exit does in fact work. The only thing I can think of is somehow the differences in script execution is causing it to wait. While WhenFinished(Wait) is in my Settings.MyD, I've never had to change it before.

I vaguely remember having this problem when I passed in volumes and used the -r switch but it became much easier to just run the script directly (and the fact that the window closed didn't hurt). My biggest problem is that because I'm scheduling this as Administrator for 12+ machines I manage at work, killing the orphaned window isn't easy or always caught in time.


Thanks again for a great product. I've worked around every minor naggle I could until now or you've downright solved them for me. Unfortunately I'm stumped on this one.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #1 on: March 27, 2010, 10:13:53 pm »

To reproduce, just take OptimizeWeekly.MyD and add WhenFinished(Exit) underneath Description(). Run MyDefrag by executing the script directly using -d 2 as your arguments. This worked perfectly fine up until version 4.2.7.
Using C: -d 2 as arguments and your modification the OptimizeWeekly.MyD script exited like it should.
Have you checked the MyDefrag.debuglog so that you are running the right script?

jonib
Logged

w0rd-driven
Newbie
*
Posts: 2


View Profile
« Reply #2 on: March 27, 2010, 10:32:34 pm »

Sorry to waste your time, it was user error. Apparently I pointed to the default script location instead of where I saved the modified version.

Thanks again
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #3 on: March 27, 2010, 10:37:51 pm »

Sorry to waste your time,
No worries, I had time to waste. Grin

jonib
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!