• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 795
  • Last Modified:

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\
0
mpenuel
Asked:
mpenuel
  • 3
1 Solution
 
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
0
 
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.
0
 
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)
0
 
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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now