Issuing a command from an Event Agent script
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Issuing a command from an Event Agent script

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Bob
Guest





Posted: Tue Oct 25, 2005 12:58 am    Post subject: Issuing a command from an Event Agent script Reply with quote

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

Back to top
Andrew Sword [MVP]
Guest





Posted: Wed Nov 02, 2005 4:20 pm    Post subject: Re: Issuing a command from an Event Agent script Reply with quote

Best top post your question at

microsoft.public.scripting.vbscript

Also try the following site

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

"Bob" <someone@microsoft.com> wrote in message
news:u0Lk8wO2FHA.1184@TK2MSFTNGP12.phx.gbl...
Quote:
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
Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB