Hi, I am trying to create a new folder from an input field. This is a work intranet, not public, website. On one page, the Administrator will put in a year for the new folder. Submit the form and it creates a new folder and copies a blank formatted database file to that folder.
I can get it to work -without the input field. In this code, I just put in the year 1965...so the request form portion doesn't matter, but I want it too.
I have tried various things including these, but none are working:Code:<% dim folderyear folderyear=request.form("createyear") Const strFolder = "C:\inetpub\wwwroot\clips\1965\", strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const Overwrite = True Dim oFSO Set oFSO = CreateObject("Scripting.FileSystemObject") If Not oFSO.FolderExists(strFolder) Then oFSO.CreateFolder strFolder End If oFSO.CopyFile strFile, strFolder, Overwrite %>
What stupid thing am I doing wrong? Thanks for your help.Code:Const strFolder = "C:\inetpub\wwwroot\clips\ & folderyear & \", strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const strFolder = "('C:\inetpub\wwwroot\clips\' & folderyear & '\')", strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const strFolder = "("'C:\inetpub\wwwroot\clips\'" & folderyear & "'\'")", strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const strFolder = ("'C:\inetpub\wwwroot\clips\'" & folderyear & "'\'"), strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const strFolder = ("'C:\inetpub\wwwroot\clips\' & folderyear & '\'"), strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb" Const strFolder = ("C:\inetpub\wwwroot\clips\" & folderyear & "\"), strFile = "C:\inetpub\wwwroot\clips\blankdb\archives.mdb"


(right side on this reply ) and agree

