Creating folders using asp/fso on pws

I tried to dynamically create a folder on my home workstation using the code below. Not only does it not create the folder, but it seems to sit in a loop. I do have the scrrun.dll on my machine which is what Microsoft says contains the fso. I also tried this same code at work (IIS 5.0 Server) and it worked fine. Why not a home??

Set fso = CreateObject("Scripting.FileSystemObject")
folder = Server.mapPath("/albums/images/newFolder")
if  not fso.FolderExists(folder) then
fso.CreateFolder(folder)
end if
Set fso = Nothing

Thank you

-Jorge
gutierrez13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mgfranzCommented:
"sits in a loop"?  how do you know?  Does the folder get created?  I'm sure there is more to your script than this... You said PWS is the driving motor behind the script?

Post your code.  And try this;

Set fso = Server.CreateObject("Scripting.FileSystemObject")

Update to ASP 3.0 too.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dij8Commented:
You will need permissions to create files or folders.  If you are on an NT based machine then this will have to be set.  You need to give write permissions to the IUSR_ComputerName account and/or IWAM_ComputerName.  These are the Internet accounts.  Assuming the "albums" folder already exists then this is the folder that will need to have the permissions applied to.

I am assuming that you are running the page through a server on your machine.  You will NOT be able to create folders on the client machine when the server is a different one.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.