View Single Post
  #2  
Old 09-07-2007, 10:02 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,049
[vbld_FSO.GetBaseName("%PROJDIR%")]

will give you the directory name of the current .bld file.

It's not clear exactly how you want to parse the value (first item found after a space, first set of digits, etc.). To retrieve the first value between spaces, use

[Split(vbld_FSO.GetBaseName("%PROJDIR%"))(1)]

The code above assumes VBScript is set as the default script language.
Reply With Quote