Open file in DemoShield

Posted on 2006-04-05
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\
Question by:mpenuel
    LVL 28

    Expert Comment

    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 Comment

    Yeh, I have, it'll tell me that it can't find the file.  I've run them both seperately and it finds them.
    LVL 28

    Accepted Solution

    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)
    LVL 28

    Expert Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now