English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 30 September 2016, 07:02   #1
Amiga1992
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.
Amiga1992 is offline  
Old 30 September 2016, 08:48   #2
thomas
Registered User
 
thomas's Avatar
 
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
In WB 2.x or higher you have to give the VERSION keyword so that the number is not interpreted as a library name:

Code:
version version 40
if not warn
   echo "Kickstart 3.1 or above"
endif
Note that the second word "version" is not a file name but a keyword.
thomas is offline  
Old 30 September 2016, 12:23   #3
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
You can also check $Kickstart and $Workbench.
idrougge is offline  
Old 30 September 2016, 13:11   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Not on 1.3.
thomas is offline  
Old 30 September 2016, 18:53   #5
Amiga1992
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!
Amiga1992 is offline  
Old 01 October 2016, 07:15   #6
Matt_H
Registered User
 
Matt_H's Avatar
 
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.
Matt_H is offline  
Old 01 October 2016, 08:29   #7
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
What about this
http://eab.abime.net/showthread.php?p=713984#post713984
Retro1234 is offline  
Old 01 October 2016, 14:20   #8
Arnie
R.I.P Smudge 18-08-16
 
Arnie's Avatar
 
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.
Arnie is offline  
Old 21 October 2016, 00:48   #9
Matt_H
Registered User
 
Matt_H's Avatar
 
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
Matt_H is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07684 seconds with 13 queries