Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 25 Oct 2005 08:43:16 +1000,    group: microsoft.public.exchange2000.applications        back       


Issuing a command from an Event Agent script   
Hi

I am maintaining some code that has a long and venerable history.
I need to issue a NET USE command to gain access to a file share, copy a 
file to the share and then delete the drive mapping.

The version of the Operating system is Windows 2003 (service pack 1) and 
Exchange is 2003 with service pack 1.
The agent is written in VBscript.  The following code segment causes the 
agent to stop processing (there is nothing in the Agent log and nothing in 
the event-log to indicate what the error might be or what has caused the 
stoppage)

set oScriptShell = CreateObject("wscript.shell")

Can anybody point me in the right direction?

TIA

Bob
date: Tue, 25 Oct 2005 08:43:16 +1000   author:   Bob

Re: Issuing a command from an Event Agent script   
Best top post your question at

microsoft.public.scripting.vbscript

Also try the following site

http://www.microsoft.com/technet/scriptcenter/default.mspx

"Bob"  wrote in message 
news:u0Lk8wO2FHA.1184@TK2MSFTNGP12.phx.gbl...
> Hi
>
> I am maintaining some code that has a long and venerable history.
> I need to issue a NET USE command to gain access to a file share, copy a 
> file to the share and then delete the drive mapping.
>
> The version of the Operating system is Windows 2003 (service pack 1) and 
> Exchange is 2003 with service pack 1.
> The agent is written in VBscript.  The following code segment causes the 
> agent to stop processing (there is nothing in the Agent log and nothing in 
> the event-log to indicate what the error might be or what has caused the 
> stoppage)
>
> set oScriptShell = CreateObject("wscript.shell")
>
> Can anybody point me in the right direction?
>
> TIA
>
> Bob
>
date: Wed, 2 Nov 2005 21:20:33 +1100   author:   Andrew Sword [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us