Results 1 to 2 of 2

Thread: FileSystemObject

  1. #1
    Duc Guest

    Default FileSystemObject

    Hi I have a directory where I can store my TextFiles.txt . I want to know how to randomly create a text file in ASP and make sure that it&#039s not over write the existent file. What I mean is if the file name already exist I the random method should pick another name for the file.<BR>Thank,<BR>Duc

  2. #2
    Join Date
    Dec 1969

    Default RE: FileSystemObject

    There is a built in method.<BR>Double check the doc, but it should return a name that is unique to the machine<BR><BR>Set oFSO = Server.CreateObject("Scripting.FileSystemObject")< BR><BR>strNewFileName = oFSO.GetTempName()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts