quick one please guys

this wont work can you hlep me with it please, what extra bits do i have to
add in to make it work?

thanks

<%
dim fs,f
dim siteid
dim year
dim country
strsiteid = request.querystring("siteid")
stryear = request.querystring("year")
strcountry = request.querystring("country")
set fs=Server.CreateObject("Scripting.FileSystemObject")
set
f=fs.CreateFolder("C:\www\images\<%=strsiteid%>\<%=stryear%>\<%=strcountry%>
")
set f=nothing
set fs=nothing
%>

Microsoft VBScript compilation error '800a0409'
Unterminated string constant

/v4/admin/contestants_create.asp, line 27

set f=fs.CreateFolder("C:\iFtpSvc\NS4\users\world\www\images\<%=strsiteid
-------------------------------------------------------------------------^

Re: string problem by Ray

Ray
Thu Feb 05 08:59:53 CST 2004

You use <% %> when you're writing ASP code interlaced with HTML. Like:

<table>
<tr>
<td>Your name is <%=yourNameVariable%></td>
</tr>
</table>

When you're writing ASP code already within the <% %> blocks, you'd just
want to concatenate your strings and variables like:

<%
sFolderToCreate = "C:\www\images\" & strsiteid & "\" & stryear & "\" &
strcountry
SET f=fs.CreateFolder(sFolderToCreate)
%>

Note the usage of SET also, for object variables.

Ray at work



"Jamie Fryatt" <james_fryatt@btconnect.com> wrote in message
news:bvtkt9$t19$1@sparta.btinternet.com...
> quick one please guys
>
> this wont work can you hlep me with it please, what extra bits do i have
to
> add in to make it work?
>
> thanks
>
> <%
> dim fs,f
> dim siteid
> dim year
> dim country
> strsiteid = request.querystring("siteid")
> stryear = request.querystring("year")
> strcountry = request.querystring("country")
> set fs=Server.CreateObject("Scripting.FileSystemObject")
> set
>
f=fs.CreateFolder("C:\www\images\<%=strsiteid%>\<%=stryear%>\<%=strcountry%>
> ")
> set f=nothing
> set fs=nothing
> %>
>
> Microsoft VBScript compilation error '800a0409'
> Unterminated string constant
>
> /v4/admin/contestants_create.asp, line 27
>
> set f=fs.CreateFolder("C:\iFtpSvc\NS4\users\world\www\images\<%=strsiteid
> -------------------------------------------------------------------------^
>
>



Re: string problem by Jamie

Jamie
Thu Feb 05 09:09:17 CST 2004

thanks for your help.


"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:#dAB3i$6DHA.1716@TK2MSFTNGP10.phx.gbl...
> You use <% %> when you're writing ASP code interlaced with HTML. Like:
>
> <table>
> <tr>
> <td>Your name is <%=yourNameVariable%></td>
> </tr>
> </table>
>
> When you're writing ASP code already within the <% %> blocks, you'd just
> want to concatenate your strings and variables like:
>
> <%
> sFolderToCreate = "C:\www\images\" & strsiteid & "\" & stryear & "\" &
> strcountry
> SET f=fs.CreateFolder(sFolderToCreate)
> %>
>
> Note the usage of SET also, for object variables.
>
> Ray at work
>
>
>
> "Jamie Fryatt" <james_fryatt@btconnect.com> wrote in message
> news:bvtkt9$t19$1@sparta.btinternet.com...
> > quick one please guys
> >
> > this wont work can you hlep me with it please, what extra bits do i have
> to
> > add in to make it work?
> >
> > thanks
> >
> > <%
> > dim fs,f
> > dim siteid
> > dim year
> > dim country
> > strsiteid = request.querystring("siteid")
> > stryear = request.querystring("year")
> > strcountry = request.querystring("country")
> > set fs=Server.CreateObject("Scripting.FileSystemObject")
> > set
> >
>
f=fs.CreateFolder("C:\www\images\<%=strsiteid%>\<%=stryear%>\<%=strcountry%>
> > ")
> > set f=nothing
> > set fs=nothing
> > %>
> >
> > Microsoft VBScript compilation error '800a0409'
> > Unterminated string constant
> >
> > /v4/admin/contestants_create.asp, line 27
> >
> > set
f=fs.CreateFolder("C:\iFtpSvc\NS4\users\world\www\images\<%=strsiteid
>
> -------------------------------------------------------------------------^
> >
> >
>
>