Results 1 to 4 of 4

Thread: CreateFolder?

  1. #1
    ErikG Guest

    Default CreateFolder?

    I am trying to create a folder, if an ID is created first. This ID is sent from another page (that part I got working) the CreateFolder does not. Please what am I missing?<BR>The piece is below. <BR>Thanks ErikG<BR><BR>If Request.Form("btnAdd") = "Add" Then<BR><BR>RecordSet.AddNew<BR>RecordSet.Fields(" ID") = Request.Form("txtID")<BR>RecordSet.Update<BR> Dim fso, fldr<BR> Set fso = CreateObject("Scripting.FileSystemObject")<BR> Set fldr = fso.CreateFolder("C:MyTest")<BR> Added = "True"<BR><BR>End If

  2. #2
    lagerBoy Guest

    Default RE: CreateFolder?

    Set fso = Server.CreateObject("Scripting.FileSystemObject")

  3. #3
    ErikG Guest

    Default RE: CreateFolder?

    I tried that and it still won&#039t work.<BR>Am I missing code?<BR>Do I need to set special permissions/settings in the C drive, or root?<BR>Thanks<BR>

  4. #4
    lagerBoy Guest

    Default RE: CreateFolder?

    The code looks fine, the only other thing that I can possible say abouth the CreateFolder method is that if the Folder already exists then an error will occur.<BR><BR>I think it&#039s entirely possible that the IUSR account doesn&#039t have permissions to create folders on you system.

Posting Permissions

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