"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message news:<bqq0r2$q3d28@kcweb01.netnews.att.com>...[color=blue]
> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
> news:bqq0i4$q3d27@kcweb01.netnews.att.com...[color=green]
> > "MikeT" <news@chthonic.f9.co.uk> wrote in message
> > news:af4a582c.0312050453.9ca7cd0@posting.google.co m...[color=darkred]
> > > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message[/color][/color]
> news:<bqioof$q3c9@kcweb01.netnews.att.com>...[color=green][color=darkred]
> > > > "MikeT" <news@chthonic.f9.co.uk> wrote in message
> > > > news:af4a582c.0312021103.15fbb0eb@posting.google.c om...
> > > > > I need to start a lengthy file copy process going on our intranet
> > > > > server from a .asp page. Since the .asp cannot wait for this to
> > > > > complete - it might take anything up to half an hour - I've been
> > > > > trying to use wshShell.Run to start a .wsf script running on the
> > > > > server itself:
> > > > >
> > > > > ignore = wshShell.Run("%comspec% /c ""cscript " & scriptpath & " " &
> > > > > arguments & """", 1, false)
> > > > >[/color][/color]
> [snip][color=green][color=darkred]
> > > > > So, is there a better way to start a process going without having to
> > > > > wait for it to finish under an account that _does_ have rights to
> > > > > these shares?
> > > >
> > > > Make your script a script component, register it in COM+, and set it[/color][/color]
> to
> run[color=green][color=darkred]
> > > > with an appropriate identity so it can access the network.
> > > >
> > > >[/color]
> >[/color]
>
http://msdn.microsoft.com/library/de...l/lettitle.asp[color=green][color=darkred]
> > >
> > > Thanks for that - not many changes are needed to make this a .wsc
> > > component. Forgive me for being stupid, but how do I call this
> > > component/write this component so that it runs the file transfer and
> > > renaming asynchronously from the host .asp script?[/color]
> >
> > Sorry, I missed the asynchronous bit. This might help:
> >
http://www.aspfree.com/articles/644,1/articles.aspx[/color]
>
> Here's another thought - how about using wshShell.Run to call "Soon" (or
> "AT" if you don't have the ResKit), which can "schedule" your script to run
> in a few seconds?[/color]
I'll take a look at that too, but won't that just run the script in
the same user-contexts as I experienced with wshShell.Run above?
The aspfree link looks interesting - seems a much better fit to my
problem at first glance anyway. Thanks for your help.