1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with MkVer

Discussion in 'Plugins' started by Frank, Apr 13, 2012.

  1. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    I'm playing around with some plugins and have a problem with MkVer:

    Code:
    C:\Temp >ver /r
     
    TCC  13.04.52   Windows 7 [Version 6.1.7601]
    TCC Build 52   Windows 7 Build 7601  Service Pack 1
    Registered to ***********
     
    C:\Temp >plugin
    TCC: No plugins loaded
     
    C:\Temp >plugin /l n:\!Admin\BIN\TCCPlugins\MkVer.dll
    MkVer v0.92.1 loaded.
     
    C:\Temp >echo %@mkver[vminst.log,4]
    "C:\Temp\vminst-0001.log"
     
    C:\Temp >echo %@mkver[vminst.log,4,1]
    "C:\Temp\vminst-0001.log"
     
    C:\Temp >echo %@mkver[vminst.log,4,1,_,#]
    "C:\Temp\vminst_0001#.log"
     
    C:\Temp >echo %@mkver[vminst.log,4,1,_]
    
    All is working as expected, except the last try ( %@mkver[vminst.log,4,1,_] ) without "endstr".
    At this point TCC crashes.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    Oops.

    I've uploaded a new build here.
     
  3. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    What I just downloaded shows me still version "v0.92.1".
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    I'll bet your browser has a copy cached. Try forcing a reload of the page, or just copy it at the command line:

    Code:
    copy "http://www.unm.edu/~cdye/dl/mkver.zip"
    
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Charles:
    This plugin sorely needs examples of what it does. Other undocumented points:
    - can the latest version be accessed (typed, executed, etc.) by the base name, or only by using its version code
    - can older versions be used by base name and version code
    - can all versions reside in the same directory, or do I need at least two directories (one for current version, another for olde ones)

    Some of these issues might be plainly explained in Jim Millard's posts; if so a hyperlink would do the trick.
     
  6. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    I'm afraid I don't understand your questions. The function just returns a unique filename; it works much like @UNIQUE, but it doesn't create an empty file. Using the filename -- creating the file -- is up to you. In most cases you'd simply COPY the original to the new name.

    See here.
     
  7. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    "MkVer v0.92.2 loaded." It is working fine, thank you.
     
  8. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    Stupid mistake; thanks for bringing it to my attention.
     

Share This Page