Advertisement
7_2009-2012 Windows System Services #226724

Generate Filename or SessionID

Generate Filename with Randomstring, Date and time.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
function generateFileName()
	dim counter
	Dim TempLongID
	For Counter = 1 to 10
	 Randomize Timer / RND
	 TempLongID = TempLongID & Chr((ASC("z") - ASC("a")) * RND + ASC("a"))
	Next
	dim temp
	dim datetime
	datetime = now()
	
	temp = day(datetime) & month(datetime) & year(datetime) & hour(datetime) & minute(datetime) & second(datetime)
	generateFileName = temp & TempLongID
end function
Upload
Original Comments (3)
Recovered from Wayback Machine