Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 21st, 2007, 11:54 PM
Registered User
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error : -2147024703 or 424

Hi ,

Im new to scripting

I'm trying to call an .exe file with parameters that would make the .exe file run in silent mode,
Heres my line for this situation:
Set wshshell = WScript.CreateObject ("WScript.shell")
wshshell.Run ("dfscmd /map \\domain\share \\server\share"), 1, true
Set oExec = wshshell.Exec("dfscmd /map \\domain\share \\server\share")

some times the script seems to run perfectly, but when I look at the Dfs targets where the .exe file was suppose to create, there is nothing.
I tested the .exe file on the cmd prompt and it does work with those parameters
Im not sure why it would work in the cmd prompt and not work in the script when im calling up the cmd prompt in the script. I’m getting error “-2147024703” or “424”

Any help/suggestions would be gladly welcome.

Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Time Error 424 "Object Required" paul31berks Access VBA 8 October 31st, 2010 04:49 PM
Page 424 & 425 davidron BOOK: Professional Java Development with the Spring Framework 0 October 3rd, 2006 06:44 PM
My.Computer.Filesystem run-time 424 error insidertrader Beginning VB 6 2 September 27th, 2006 02:43 PM
Page 424, para before 'Try It Out' Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 June 19th, 2006 10:51 AM
Runtime Error 424: Object needed tobian Excel VBA 4 February 20th, 2006 10:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.