Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 04:19:47 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: Command-line equivalent to WhenFinished(Exit) ?  (Read 1814 times)
andublin
JkDefrag Hero
*****
Posts: 103


View Profile
« on: June 24, 2009, 08:08:57 pm »

Is there a command-line equivalent to WhenFinished(Exit) ?
I mean something like the -q option which you have on jkdefrag?
Thanks!
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #1 on: June 25, 2009, 02:26:08 am »

No. The MyDefrag scripts are the way to pass settings to the program, far more flexible than the MyDefrag commandline. See the "Commandline" line chapter on the Scripts page for a full list of MyDefrag commandline options.
Logged
andublin
JkDefrag Hero
*****
Posts: 103


View Profile
« Reply #2 on: June 26, 2009, 08:43:19 am »

Hi JK,
What happens when  a statement in one script conflicts with another, which takes priority?
I notice that your standard Settings script contains WhenFinished(wait).
If I put WhenFinished(exit) in a calling script before calling that or after calling that, which takes priority?
Thanks!
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #3 on: June 26, 2009, 12:19:40 pm »

The WhenFinished() action stores the setting in an internal variable. The interpreter will examine the variable when the script finishes, and perform the wanted action. If the WhenFinished() action is performed multiple times, then the internal variable is simply overwritten with the new setting. Scripts that are called from within a main script are executed inside the same scope, so if there is a WhenFinished() in such a called script then it will store the setting in the same variable. In other words, the last performed WhenFinished() has "priority", wherever it is.

p.s. All settings work like this.
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!