Jump to content
Sign in to follow this  
ecluley

Make folder

Recommended Posts

I am trying to have a script make a folder then copy some files into itmy code is as follows:dim fs,fset fs=Server.CreateObject("Scripting.FileSystemObject")set f=fs.CreateFolder("test")fs.CopyFile "new\*.mdb", "test"set f=nothingset fs=nothingWhen the code executes I get a errorMicrosoft VBScript runtime error '800a0046'Permission denied/adduser_update.asp, line 10Line 10 is set f=fs.CreateFolder("test")I have emailed my hosting company and they say permissions for asp scripts to write to the disk are enabled. what am I doing wrong?ThanksEwen

Share this post


Link to post
Share on other sites

Problem is ASP do not know where to create your folder "test". you have to specify a physical/virtual path.either set f=fs.CreateFolder("C:\Inetpub\wwwroot\test") orset f=fs.CreateFolder(Server.MapPath("test"))it will be ok.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...