Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 4th, 2003, 03:03 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default File System Object Permissions

I open a file system object and After I write a file, I want to copy it to another folder located on a different server.

If I just make a copy of it in the same folder, the following works:

objFSO.CopyFile strWritePath & "default.asp", strWritePath & "default_test.asp"
however, when I try to copy it to another server, I get an error. Here is that code:

objFSO.CopyFile strWritePath & "default.asp", "\\Admvbprogram206\Temp\X_testTimeTon.asp"

The error says:

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
We have IIS 5.0 running with anonymous access turned off. Since I am an administrator and I have specific privledges on the folder I am trying to copy this file to, I do not understand why I am getting the error. We are on a domain using active Directory.

Does anyone know why I would be getting a permissions error when I obviously have permissions? The IIS server is logged on as a domain admin as well.

Old August 5th, 2003, 09:08 PM
Registered User
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to menesesg


Please help me, I want to write a txt file into my server, I am using the Filesystemobject, if I do this local it works fine, but when I want to do it into the server then I get an error. By looking at your question I believe you have done this, here is my code:

dim filesys, filetxt, getname, path
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.CreateTextFile("E:\P1a\coffeehouse.com.mx\ www\mitexto.txt", True)
path = filesys.GetAbsolutePathName("E:\P1a\coffeehouse.co m.mx\www\mitexto.txt")
getname = filesys.GetFileName(path)
mensaje = Request.Form("comentarios")
If filesys.FileExists(path) Then
   Response.Write ("Your file, '" & getname & "', has been created.")
End If

Hope you can help me.

Thanks in advance

Old August 6th, 2003, 09:23 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts

Does anyone have any ideas here? Does anyone read these?


Similar Threads
Thread Thread Starter Forum Replies Last Post
File System Object question fogofogo Classic ASP Basics 1 December 8th, 2005 04:14 PM
File System Object kumar_rajeshk Pro VB 6 7 April 28th, 2004 01:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.