2 Replies Latest reply on Jun 6, 2006 5:05 PM by Newsgroup_User

    Create folder using FS

    Level 7
      Hi,

      I am not exactly an expert coding but got the idea, I am trying to create a
      folder using FS function.

      This is my code below, I am using a path from database record and a session
      variable to create the folder in the correct place, but I get a syntax
      error, perhaps some expert can see it ..

      <%
      dim fs,f
      set fs=Server.CreateObject("Scripting.FileSystemObject")
      set
      f=fs.CreateFolder(Folderpath.Fields.Item("ParamVal")&(Session("NewFirmId"))
      set f=nothing
      set fs=nothing
      %>

      This is the error

      Technical Information (for support personnel)

      a.. Error Type:
      Microsoft VBScript compilation (0x800A03EE)
      Expected ')'
      /BlueDot2007/SuperUser/LawFirms/UpdateLogoURLSP.asp, line 21, column 79
      set
      f=fs.CreateFolder(Folderpath.Fields.Item("ParamVal")&(Session("NewFirmId"))
      ------------------------------------------------------------------------------^

      Thanks for the help !

      Aleks


        • 1. Re: Create folder using FS
          bregent Most Valuable Participant
          Your open and close parens are not balanced. You have 4 open and 3 close
          • 2. Re: Create folder using FS
            Level 7
            Found the error .. thanks for the email J


            "Alejandro" <arkark2004@hotmail.com> wrote in message
            news:e646en$6hb$1@forums.macromedia.com...
            > Hi,
            >
            > I am not exactly an expert coding but got the idea, I am trying to create
            > a folder using FS function.
            >
            > This is my code below, I am using a path from database record and a
            > session variable to create the folder in the correct place, but I get a
            > syntax error, perhaps some expert can see it ..
            >
            > <%
            > dim fs,f
            > set fs=Server.CreateObject("Scripting.FileSystemObject")
            > set
            > f=fs.CreateFolder(Folderpath.Fields.Item("ParamVal")&(Session("NewFirmId"))
            > set f=nothing
            > set fs=nothing
            > %>
            >
            > This is the error
            >
            > Technical Information (for support personnel)
            >
            > a.. Error Type:
            > Microsoft VBScript compilation (0x800A03EE)
            > Expected ')'
            > /BlueDot2007/SuperUser/LawFirms/UpdateLogoURLSP.asp, line 21, column 79
            > set
            > f=fs.CreateFolder(Folderpath.Fields.Item("ParamVal")&(Session("NewFirmId"))
            > ------------------------------------------------------------------------------^
            >
            > Thanks for the help !
            >
            > Aleks
            >