Generating a guid in ColdFusion

Anyone can point me to how to generate guids in ColdFusion?

I have a file that is generating by a cffile move on a server.

Trying to prepare for the case of more than user trying to use the file at the same time.

A coworker suggested using guid in coldFusion and I would like to learn how to do it with the code snippet attached below.
<cfset filePath = 'c:\Temp\OfferTargetingZIP_Associations.txt'>	
<cffile 
         action="move" 
	source="#ARGUMENTS.ValidZIPsFilePath#" 
	destination="#filePath#" 
/>

Open in new window

onaled777Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
azadisaryevCommented:
cf has CreateUUID() function which generates a "35-character string representation of a unique 128-bit
integer".
0
azadisaryevCommented:
fyi, cf uuid format is xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx, where x is a hexadecimal digit (0-9 or A-F). The character groups are 8-4-4-16
This does not conform to the Microsoft/DCE standard, which is as follows:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)
There are UUID test tools and a user-defined function called CreateGUID, which converts CFML UUIDs to
UUID/Microsoft GUID format, available on the web at www.cflib.org.

[all from CFML reference for CreateUUID() function]
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.