View Single Post
  #1 (permalink)  
Old June 21st, 2007, 11:54 PM
nayaz nayaz is offline
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
or
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