Getting a version number

Roger Eller roger.e.eller at sealedair.com
Mon Oct 13 17:11:10 EDT 2014


There's a mixed bag of tricks that you can use shell() to get at.  This one
gets the file version:  Needs two back slashes between folders.

*wmic datafile where name='c:\\path\\to\\executable\\LC_Standalone.exe'
get version*

Source:
http://www.winplat.net/post/2009/09/24/How-to-check-file-properties-through-WMI-command-line.aspx


On Mon, Oct 13, 2014 at 4:25 PM, Magicgate Software - Skip Kimpel <
skip at magicgate.com> wrote:

> I thought I was missing something but it looks like this is a challenge.
> Just for clarification purposes, it a standalone for Windows.
>
> Having said that I am really surprised that there is not a script call of
> some sort to retrieve this information.  Hopefully there is an undocumented
> function that somebody with show up with here on this list.
>
> SKIP
>
> On Mon, Oct 13, 2014 at 4:09 PM, Bob Sneidar <bobsneidar at iotecdigital.com>
> wrote:
>
> > On OS X use mdls -name kMDItemVersion /Applications/<your full app name>
> > (if you are using Spotlight to index files, which unless you have
> > explicitly disabled the feature, you are).
> >
> > On Windows it looks like you need to install add-on software. There may
> be
> > a javascript command that will work, which you can run from the shell,
> but
> > frankly I got all this from a google search, which you can easily do
> > yourself.
> >
> > I wish I knew more about command line syntax… WAIT WHAT THE HELL AM I
> > SAYING???
> >
> > Bob S
> >
> >
> > On Oct 13, 2014, at 12:40 , Magicgate Software - Skip Kimpel <
> > skip at magicgate.com> wrote:
> >
> > > Is there a way to programmatically, via LC, to retrieve the current
> > > standalone "file version number" and "product version number" as stated
> > in
> > > the standalone settings?
> > >
> > > Thank you,
> > >
> > > SKIP KIMPEL
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list