Dispatch Semi-Static variable

I'm attempting to create a Dispatch Action to move a file toafolder outside of PDMWE.  No problem here, the difficultyiswith the file name.  I need to have unique file name foreachfile/time a document is moved.  

I have set up an Environment variable "TempFIleName"toconstruct a string consisting of the current date andtime. In the first part of the dispatch I copy the file to thenewarea and give it the new name (I'm also a little confusedasto how to add the file extension dynamically. No positionfunctionin the syntax guide).  The file name goesinas 20070501102431 without a file extension for now.  

The next step in the dispatch is to create a parameterfilecontaining my data for the external processes. This includesthevalue of TempFileName.  Using the same variable in twoplaceswithin the dispatch I would expect it to have the samevalue. This does not appear to be the case. The TempFileNamevalueevaluates each time it is used.  So the value in theParameterFile is slightly off, 20070502202435, for example.

Does anyone know how to have the variable evaluateonlyonce?   

This is the current setting for the selected variable:
Name: TempFilename  
Type: Value of environment variable
Environment variable:  CurrentTime(%%Y%%m%%d%%H%%M%%S)


Regards
Gerry

SolidworksSolidworks Pdm enterprise Pdm