© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 04:19:47 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Questions and help
>
Command-line equivalent to WhenFinished(Exit) ?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Command-line equivalent to WhenFinished(Exit) ? (Read 1814 times)
andublin
JkDefrag Hero
Posts: 103
Command-line equivalent to WhenFinished(Exit) ?
«
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
Re: Command-line equivalent to WhenFinished(Exit) ?
«
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
Re: Command-line equivalent to WhenFinished(Exit) ?
«
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
Re: Command-line equivalent to WhenFinished(Exit) ?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...