Open file in DemoShield

I have a file called "multiterm.dbd" that opens with DemoShield ("demo32.exe").  I have both of these files in the same location.  I would like to create a vbscript that will open the .dbd file using dem32.exe.  Right now if I try and run it, it asks me to select a program to use.

Thanks, if you need more information, please let me know.  

The two files are located in a location called: \\server\share\doc\
mpenuelAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vinnyd79Commented:
Have you tried?

Dim wshell
Set wshell = CreateObject("Wscript.Shell")
wshell.Run "\\server\share\doc\demo32.exe " & "\\server\share\doc\multiterm.dbd"

Set wshell = Nothing
mpenuelAuthor Commented:
Yeh, I have, it'll tell me that it can't find the file.  I've run them both seperately and it finds them.
vinnyd79Commented:
If the path has spaces in it try:

wshell.Run Chr(34) & "\\server\share\doc\demo32.exe" & Chr(34) & " " & Chr(34) & "\\server\share\doc\multiterm.dbd" & Chr(34)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vinnyd79Commented:
Will it work if you associate .dbd files with demo32.exe?You can try setting the association from a dos prompt using:

assoc .dbd=\\server\share\doc\demo32.exe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.