Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > VBScript
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 21st, 2007, 11:54 PM
Registered User
Join Date: Jun 2007
Location: , , .
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:32 PM.

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