Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic filename 1

Status
Not open for further replies.

BiggerT

Programmer
Jan 20, 2004
10
0
0
NL
02/09/2004

Hello, can somebody tell me how I should generate a filename automatically. I want to use the date of that excact moment and the first three letters of a predefined string.

I hope somebody can help me with this.

GrtZ,

Theo
 
How's this:
Code:
set name [concat [clock format [clock seconds] -format %D][string range $str 0 2]]
02/09/04STR
 
Or Just use [clock seconds][string range $str 0 2]
for a unique name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top