Bad filename or number

Discussion in 'Classic ASP' started by marcmzs, Dec 4, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I have a script that creats a folder for each user where he can upload his files. All this time i used c:\folder\file\
    But when i changed it to as below its not working. Whats wrong here?

    <HTML>
    <HEAD>
    <TITLE>Create folder on Server</TITLE>
    </HEAD>

    <%
    set fs=Server.CreateObject("Scripting.FileSy<WBR>stemObject<WBR>")
    If fs.FolderExists("http:<WBR>\<WBR>\<WBR>localhost\<WBR>images\<WBR>user\<WBR>") = false Then
    set f=fs.CreateFolder("http:<WBR>\<WBR>\<WBR>localhost\<WBR>images\<WBR>user\<WBR>")
    end if
    %>
    </BODY>
    </HTML>

    Microsoft VBScript runtime (0x800A0034)
     
  2. If this happens when i order space on dasp, how will i be able to create files?. All my plans will go to waste.
     
  3. marcmzs,

    You will have to refer to the fysical path. On your DiscountASP control panel, under account information, you will find the server path, which is something like e:\web\myaccount\.
    So change your upload directory to the new path and everything will work fine.

    Success !

    --
    Steurm
    www.steurm.net/steurm
    [​IMG]
     
  4. Thank you.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page