Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WScript error in DTS ActiveX Task

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3471
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WScript error in DTS ActiveX Task
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WScript error in DTS ActiveX Task - 6/21/2005 4:52:30 AM   
  jbatty

 

Posts: 4
Score: 0
Joined: 6/21/2005
From:
Status: offline
I am trying use the windows shell from within a DTS task (VBScript). However, when i try execute the task i get an error

example
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("%windir%\notepad.exe")

error:Microsoft vbscript runtime error, Object required Wscript.

If i run the script as a stand alone (outside DTS), it works OK. is not possible to create a shell within a DTS task.
can any one please help.
 
 
Post #: 1
 
 Re: WScript error in DTS ActiveX Task - 6/21/2005 6:36:19 AM   
  rockocubs

 

Posts: 65
Score: 0
Joined: 4/8/2005
From:
Status: offline
Not sure what DTS is but i know when you run script from HTML you have to remove the WScrpit from WScript.CreateObject.

(in reply to jbatty)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WScript error in DTS ActiveX Task Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts