30 September 2016, 07:02 | #1 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Using VERSION command on a script
I know you can use version to check a library's version and act upon it on a script, but I am not being able to do the same with Kickstart.
is there any way I can do this using version? If I type something like "version internal" it shows me both KS and WB and I cannot check on it. |
30 September 2016, 08:48 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
It depends on the version of the Version command.
In WB 1.3 you just give the version number without a library name: Code:
version 36 if not warn echo "Kickstart 2.0 or above" endif Code:
version version 40 if not warn echo "Kickstart 3.1 or above" endif |
30 September 2016, 12:23 | #3 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
You can also check $Kickstart and $Workbench.
|
30 September 2016, 13:11 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Not on 1.3.
|
30 September 2016, 18:53 | #5 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Thanks guys! I am on 2.0+
I didn't know "version"was the keyword, is what I was trying to find. I had forgotten about $Kickstart and $Workbench too, Basically I want to add a line on the startup sequence that if a certain kickstart is detected, it softkicks another one. Since I don't want this to be done every time I reset, I needed the check. Thanks again! |
01 October 2016, 07:15 | #6 |
Registered User
Join Date: Jul 2008
Location: Boston, MA
Posts: 943
|
I wrote a script for one of my systems that did just that. Unfortunately I'm traveling at the moment and don't have access to it. If you're still having trouble, give this thread a bump in a little over a week and I'll share it.
|
01 October 2016, 08:29 | #7 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
What about this
http://eab.abime.net/showthread.php?p=713984#post713984 |
01 October 2016, 14:20 | #8 |
R.I.P Smudge 18-08-16
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
|
The script that Thomas suggested is good enough for what Akira needs.
You just need to replace the echo command line with the skick command line or keep the echo comand line and add the skick command line. |
21 October 2016, 00:48 | #9 |
Registered User
Join Date: Jul 2008
Location: Boston, MA
Posts: 943
|
For the record: my softkick script (called from startup-sequence). I used this on my A2000/2630 before I got a real 3.1 ROM.
Code:
Version exec.library 40 >NIL: If WARN Wait 1 SYS:Tools/SKick NAME Devs:Kickstarts/kick40063.A600 QUIET KILLTAGS EndIF |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running a script under KS 1.3 | DamienD | support.Other | 11 | 19 June 2016 15:29 |
Best script launcher | jotd | support.Games | 7 | 29 December 2015 18:37 |
RebootStart script help! | Overkill | support.Other | 43 | 23 April 2013 17:52 |
Workbench Version command and startup-sequence | Ze Emulatron | support.Other | 3 | 27 June 2011 16:19 |
Carrier Command (amigaemulation.com version) | MethodGit | request.Old Rare Games | 4 | 11 January 2004 02:47 |
|
|