We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Open file in DemoShield

mpenuel
mpenuel asked
on
Medium Priority
847 Views
Last Modified: 2012-08-13
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\
Comment
Watch Question

Commented:
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

Author

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.
Commented:
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)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.