Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 4th, 2003, 03:03 PM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
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.

Reply With Quote
  #2 (permalink)  
Old August 5th, 2003, 09:08 PM
Registered User
Join Date: Jun 2003
Location: Mexico city, D,F, Mexico.
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

Reply With Quote
  #3 (permalink)  
Old August 6th, 2003, 09:23 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:23 PM.

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