Advertisement

05.06.2008 at 07:56AM PDT, ID: 23379652
[x]
Attachment Details

Where does this copyfolder action goes wrong

Asked by SimonAdrian in Active Server Pages (ASP)

Tags: asp

Im trying to copy a folder with the copyfoldr-method, but when I try to add a new foldername through an input-form something goes wrong

<form method="get" action="user_profile.asp">
Folder Name: <input type="text" name="folder_name" />
<br /><br />
<input type="submit" value="Submit" />
</form>
<%
folder_name=Request.QueryString("folder_name")
set FS=server.createobject("Scripting.FileSystemObject")
pathtoOriginalFolder=server.mappath("/graphics/common/usergraphics/Europe/")
pathtoNewFolder=server.mappath("/graphics/common/usergraphics/" & folder_id & "/" & folder_name)
fs.copyfolder pathtoOriginalFolder,pathtoNewFolder
set fs=nothing
%>

folder_id is the user_id coming from an mssql-database and that is correct.
If I let the pathtoNewFolder end with folder_id then the originalfolder is copied successfully to that folder_id.

I assume that where Im going wrong has got something to do with the number of quotations in the pathtoNewFolder-path.


Start Free Trial
[+][-]05.06.2008 at 08:02AM PDT, ID: 21507868

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 09:08AM PDT, ID: 21508505

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 09:14AM PDT, ID: 21508554

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 09:41AM PDT, ID: 21508827

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:02AM PDT, ID: 21509019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:13AM PDT, ID: 21509116

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:18AM PDT, ID: 21509164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:22AM PDT, ID: 21509195

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:42AM PDT, ID: 21509355

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 11:24PM PDT, ID: 21513554

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: asp
Sign Up Now!
Solution Provided By: cyberwebservice
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628