Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6648601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:40:30+00:00 2026-05-26T00:40:30+00:00

As per title createobject scripting.filesystemobject IIS 7 – vbscript code is always trying to

  • 0

As per title

createobject scripting.filesystemobject IIS 7 – vbscript code is always trying to save file in C:\Windows\System32\inetsrv\ instead of web site folder

and I get a “permission denied” error of course

The file should be being saved in the web site folder.

Any help much appreciated.

edit:
The vbscript is being called from a form in a website running under IIS7 on win 7 dev machine.
I am not setting any path in this case but when I tried “.\” IIS also attempted to use the “inetsrv” path and not the web site root folder as I was expecting.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:40:30+00:00Added an answer on May 26, 2026 at 12:40 am

    Its trick to be sure without the presence of code in your question however I suspect that you are assuming that creating a file such as “ThisIsMyFile.txt” would create a file in the ASP application folder. It doesn’t.

    FileSystemObject knows nothing about IIS. It will use the application’s current directory which defaults to he directory of the executable file used to start the process, which in the case of IIS is found in “C:\Windows\System32\inetsrv\”.

    What you need is this:-

    Dim sFilePath : sFilePath = Server.MapPath("/") & "ThisIsMyFile.txt"
    

    This creates a full path to a file that can be created in the web sites root folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per title, I am simply trying to install pecl_http extension for php in
As per title. I want to be able to save some data in a
As per title i am trying to measure page performance in IE6 that has
as per the title; is it possible to have nested comments in valid HTML?
Per the Java documentation, the hash code for a String object is computed as:
As per my understanding stateless session beans are used to code the business logic.
As per the Emacs docs , every time you open a file, Emacs changes
As per title, what practise for string comparisons do you use and why?
As per title really I'm wanting to send a custom HTTP post request to
As per title. Using native ID's The only thing I can think to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.