Using a domain account as the anonymous user for file copy over network
From: Colin Steadman (colin.steadman_at_gmail.com)
Date: 02/25/05
- Next message: Jeff Turner: "Re: Securing IIS 5.1 on XP Pro From External Access"
- Previous message: KC: "Re: Question"
- Next in thread: Ken Schaefer: "Re: Using a domain account as the anonymous user for file copy over network"
- Reply: Ken Schaefer: "Re: Using a domain account as the anonymous user for file copy over network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 Feb 2005 07:15:13 -0800
I have a VBS script which contains an array of files and locations.
The script loops through array trying to find each file in the
location specified. If found the script moves the file to another
location (typically on another server).
The script is run by Task Scheduler every few minutes, and is run
under a domain account.
What I need to do now is move this functionality into an ASP page. A
suggestion from an ASP group was to put the script into an ASP page
and move the ASP page into a new 'Virtual Folder' that runs under the
domain account I was using in Task Scheduler.
This makes good sense, but I've tried using a very simple script and
still get the following error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/test_for_domain_files/domain_file_handling.asp, line 8
This is the entire ASP code it runs:
<%
CopyAFile "\\lbdb601\c$\test1.txt", "\\lbdb601\c$\test2.txt"
Sub CopyAFile(vFrom, vTo)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile vFrom, vTo, True
Set fso = Nothing
End Sub
%>
The very same code runs fine from the Desktop in a .VBS file.
Should this be possible, and if so any ideas why I'm getting the
error.
TIA,
Colin
- Next message: Jeff Turner: "Re: Securing IIS 5.1 on XP Pro From External Access"
- Previous message: KC: "Re: Question"
- Next in thread: Ken Schaefer: "Re: Using a domain account as the anonymous user for file copy over network"
- Reply: Ken Schaefer: "Re: Using a domain account as the anonymous user for file copy over network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|