Copy folders from one web site to another web site on same server, permission problems

Copy  folder list (all files in 20 folders)  from one web site to a many web sites folders on same server.
SQL DB has list. My Program works using vb EXCEPT:

I get permissions denied.
Using VB web site in IIS 7.0
I can get to remote desktop. to manage IIS 7.0

I was going to make a virtual folder that contained all web folders for all sites.
But am afraid to give write permissions to the virtual folders. As I think all folders will end up with those permissions outside the web app.
When I gave the virtual folder write/modify permission it took a very long time to set permissions.
Not comfortable with that.

Is there a setting in IIS that would easy allow writing everywhere that could be turned on and off easily?

I'd use vb script but there needs to be SQL db interaction with user checking off folders and web site to copy to.
Power shell? Never tried it,  can I read from SQL query easy ?

thanks for your thoughts.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

David Johnson, CD, MVPOwnerCommented:
My Program works using vb EXCEPT:I get permissions denied. except that it doesn't work.
don't do it within IIS  by design different websites have different owners and permissions.and one website cannot interact directly with another website. This isolation is also by design. It is trivial to do this outside of iis. what you can do is setup the copy parameters and save them to a file. and have an external program wait for this file to be created, act on the file and then delete it.

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
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
Microsoft IIS Web Server

From novice to tech pro — start learning today.