Error : -2147024703 or 424
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.