Show the actual line of code that you are using to call it.
[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]
And what about something like this ?
cmd="ntbackup backup ""D:\Program Files\dir1\dir2"" etc ..."
Set sh = CreateObject("WSCript.Shell")
sh.Run cmd
If you want the script wait for completion, try this:
rc = sh.Run(cmd, 1, True)
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.