Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Using shell.application MoveHere doesn't move the file

Reply
Thread Tools Display Modes

Using shell.application MoveHere doesn't move the file

 
 
Pat Moline
Guest
Posts: n/a

 
      08-12-2008
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
 
Reply With Quote
 
 
 
 
J Ford
Guest
Posts: n/a

 
      08-13-2008
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

 
Reply With Quote
 
Pat Moline
Guest
Posts: n/a

 
      08-13-2008
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

 
Reply With Quote
 
J Ford
Guest
Posts: n/a

 
      08-13-2008
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

 
Reply With Quote
 
Pat Moline
Guest
Posts: n/a

 
      08-19-2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get permission for Shell.Application in JScript in local files (file://...html)? Jeff Windows Vista Security 1 02-23-2009 07:45 PM
Search causes Restart Shell Faulting application explorer.exe Kopernik Windows Server 0 04-10-2008 12:17 PM
Shell.application verb problem M Scripting 0 02-05-2007 03:01 PM
using MoveHere (ADSI) for moving an OU subtree gplantz Active Directory 2 01-05-2005 05:01 PM
erratum of msdn reference about WSH Shell.Application?? Y.H. Rhiu Scripting 0 12-06-2004 12:19 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59