Print Page | Close Window

File Creation in ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10567
Printed Date: 31 March 2026 at 11:59am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: File Creation in ASP
Posted By: neotrix
Subject: File Creation in ASP
Date Posted: 23 May 2004 at 1:58am

Hello Dear Sirs.. I'm Stuck in a Dam stupid and idiot problem!

what i want to do is... that i want a script to make temporary files, like temp/paksong-984759.smi or temp/indiansong-94857985.smi etc etc

All i want to do is to learn to create a file with a random name inside a specific folder.. and any command that can delete that file.. please help :)

Thanks



-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..



Replies:
Posted By: dpyers
Date Posted: 23 May 2004 at 2:42am

The following line of code will take the date/time down to 10 decimal places and convert it to a whole number you can use for a file name.

Quote strDateNumber = cdbl(now) * 10000000000

aspfaqs, asp101, hotscripts, etc. all have tutorials on using FSO (file system object) to create and delete files



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net