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\
Who is Participating?
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)
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.
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.