English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > New to Emulation or Amiga scene

 
 
Thread Tools
Old 25 January 2013, 11:33   #1
elowan
Registered User
 
Join Date: Dec 2012
Location: germany
Age: 43
Posts: 324
How to read out library-Version number?

As far as i remember, shell-cmd Version Filename of library returns the version number of a library file. Is there a way to make this cmd go thru all files in a directory and retur a list of versionnumbers of all files found inside?
elowan is offline  
AdSense AdSense  
Old 25 January 2013, 12:37   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,527
Code:
list >ram:script libs: lformat="version *"%p%n*" file full"
execute ram:script
thomas is offline  
Old 25 January 2013, 12:53   #3
elowan
Registered User
 
Join Date: Dec 2012
Location: germany
Age: 43
Posts: 324
thanks, ill try this!
elowan is offline  
Old 26 January 2013, 14:52   #4
elowan
Registered User
 
Join Date: Dec 2012
Location: germany
Age: 43
Posts: 324
There seems to be a little problem, i get a list of libs - but no version numbers. And a complain about too long argument (return 20)
Attached Thumbnails
Click image for larger version

Name:	t.gif
Views:	142
Size:	6.0 KB
ID:	34023  
elowan is offline  
Old 26 January 2013, 15:03   #5
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,528
Make sure you type the command thomas gave correctly, from your screenshot you got it wrong both times.
mark_k is offline  
Old 26 January 2013, 21:05   #6
elowan
Registered User
 
Join Date: Dec 2012
Location: germany
Age: 43
Posts: 324
Sorry, i dont see a typo in here - some hint please?!
Attached Thumbnails
Click image for larger version

Name:	nt.gif
Views:	112
Size:	3.8 KB
ID:	34031  
elowan is offline  
Old 26 January 2013, 21:25   #7
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,528
Hmm. I'm not sure why you got that error. I tried that command and it did work, though it works better if you add a "failat 30" line at the start of the script (otherwise the script stops at the first subdirectory or file without version string in LIBS:).

You could try using the S:SPat script instead:
Code:
SPat Version LIBS:#?.library FULL FILE
Replace LIBS: with whatever directory you want to scan files in. Using SPat doesn't scan files in subdirectories (e.g. you might have files in LIBS:xfd which you want to scan as well as the ones in LIBS:). You can do that with Thomas' method by adding an ALL argument to the List command.
mark_k is offline  
Old 26 January 2013, 21:28   #8
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,527
Try this:

Code:
echo >ram:script "failat 21*nset echo on"
list >>ram:script libs: all files lformat="version *"%p%n*" file full"
execute ram:script
thomas is offline  
Old 26 January 2013, 21:32   #9
elowan
Registered User
 
Join Date: Dec 2012
Location: germany
Age: 43
Posts: 324
Thank you, i must close for now - but give it a try soon !
elowan is offline  
Old 27 January 2013, 14:17   #10
Minuous
Coder/webmaster/gamer
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,644
Report+ can do this; just go to "path differences report", choose "generate a snapshot", make sure that logging is enabled, and then after generating the report have a look at the logfile, you will see all version numbers of all files listed.
Minuous is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New version of boards.library bubbob42 News 33 05 September 2017 08:51
BSDSocket.library error with version 1.5+ Icreadence support.WinUAE 7 28 August 2008 04:16
Can't open version 36 of graphics.library Lambizkit support.Apps 1 07 November 2007 08:00
Old version number? [GameBase version vs. GBA version + misc. questions] wanderer project.MAGE 5 23 August 2007 00:51
WinUAE version number Exodus support.WinUAE 1 31 December 2002 01:24

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 23:05.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.14529 seconds with 12 queries