Here is the script that is used. It was taken almost directly from a
Microsoft example.
function fnMoveHereVB(sFileToMove)
dim objShell
dim objFolder
dim sToFolder
dim sFromFolder
sFromFolder = InboundUACTFiles & "\" & sFileToMove
'"e:\FTPRoot\InboundUACTFiles\" & sFileToMove SR 55918
sToFolder = UCNStorage '"e:\UCNStorage" SR 55918
set objShell = CreateObject("Shell.Application")
set objFolder = objShell.NameSpace(sToFolder)
if not objFolder is nothing then
objFolder.MoveHere sFromFolder,1044
end if
set objShell = nothing
set objFolder = nothing
end function
Thanks for the help
"J Ford" wrote:
> Perhaps is the security of the share... I know you said 'everyone' had
> permissions, but you might try to implicitly add the IUSR_xxxx account.
> Possible post the script of snippet for better help.
>
> "Pat Moline" wrote:
>
> > Thanks for the response. I have already tried that and the VBS script works
> > just fine. I have tried it both with my normal login and also the login that
> > the website should be using.
> >
> > Is there some registry or IIS settings that need to be changed to enable
> > this script?
> >
> > Thanks
> > Pat Moline
> >
> > "J Ford" wrote:
> >
> > > Perhaps try and put the script portion is just a VBS file and remove the
> > > error handling to see what is going on.
> > >
> > > "Pat Moline" wrote:
> > >
> > > > Our asp page uses the shell.application MoveHere method to move a file from
> > > > one folder on disk drive to another folder on the same disk drive. The disk
> > > > drive is local to the server. The code works fine on two Windows Server 2000
> > > > systems but does not work on a Windows Server 2003 system. Everyone has full
> > > > control of both folders, so it shouldn't be a permissions issue.
> > > >
> > > > Is there something special that needs to be setup to get this scripting to
> > > > work on a Windows Server 2003 system?
> > > >
> > > > Thanks in advance.
> > > > Pat Moline
|