hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : asp code help
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

asp code help

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2001, 05:30 PM
brain2b brain2b is offline
Junior Guru Wannabe
 
Join Date: Dec 2000
Posts: 41
Angry

One of my clients has this asp code, and it returns a 500 error can somebody take a look at if for me, I'm not very good at all with ASP

<%
Dim fs, d, dc, dn
set fs = Server.CreateObject("Scripting.FileSystemObject")
set dc = fs.GetFolder("C:\Inetpub\ftproot\users\alex2\public_html\")
set dn = dc.Files
for Each d in dn
%>
<%i=i+1%>
<%=d.name%>
<%Next%>
<%dossier="dossier2"%>
<%
set fs=CreateObject("Scripting.FileSystemObject")
set f=fs.CreateFolder("C:\Inetpub\ftproot\users\alex2\public_html\"&dossier)
set f=nothing
set fs=nothing%>

__________________
http://beta.sharpwebinnovations.com
my voice is my passport, verify me.

Reply With Quote


Sponsored Links
  #2  
Old 02-13-2001, 05:53 PM
Rehan Rehan is offline
Web Hosting Guru
 
Join Date: Oct 2000
Posts: 279
Near the end of the code, this...
set fs=CreateObject("Scripting.FileSystemObject")

...should be this...
set fs=Server.CreateObject("Scripting.FileSystemObject")

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Industry Forum Establishes Cloud Service Provider Code of Practice Web Hosting News 2012-09-21 12:38:23
DigiCert Launches Extended Validation Code Signing Certificates Web Hosting News 2012-08-15 15:30:28
Non-Profit New Zealand Computer Society to Develop Cloud Code of Practice Web Hosting News 2011-09-02 17:22:36
SSL Certificate Authority Comodo Providing Intel Application Certification Web Hosting News 2011-08-12 15:51:28
Web Host DreamHost Contributing Code for Ceph File System to OpenStack Web Hosting News 2011-06-23 20:40:32


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?