+ Reply to Thread
Results 1 to 13 of 13

Launch .exe file that has associated .set file?

  1. #1
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Launch .exe file that has associated .set file?

    Hi, I am trying to launch Microsoft Dynamics GP (2010) via a macro, and have hit a snag.

    Here is the code I am using to launch MS Paint as a test (which works just fine):

    Please Login or Register  to view this content.
    However, when I create a shortcut to MS Dynamics GP, then look at the properties, here is the filepath:

    "C:\Program Files (x86)\Microsoft Dynamics\GP2010\Dynamics.exe Dynamics.set"

    I pasted that shortcut in to the FILE_LOCATION cell, and naturally it didn't work.

    The ".set" file is a notepad file that has a bunch of programming code of some sort.

    Here is what a quick google search says about a .set file (which seems to make sense):

    What is a SET file?

    Files that contain the .set file extension can be associated with Microsoft's Backup File Set. The SET file contains the set of files that a user wants to back up. When you back up additional files, the new files are also are added to the SET file archive.

    The .set file extension is also used by a number of applications to store the user's application configuration settings and preferences. The file is loaded by the application when the program is run on the system. Some of the applications that commonly use the SET file format for this purpose include Diablo II, AutoCad and Corel Painter.
    I figured that the Dynamics.set is used in conjunction (AKA 'with') Dynamics.exe, I tried the following code:
    Please Login or Register  to view this content.
    but I get "Error '424' Object Required"

    So then I tried this code:
    Please Login or Register  to view this content.
    but I get "Compile Error: With object must be user-defined type, object, or variant"

    Does anyone have any ideas of how can I get the .exe file to launch, but also utilize this mandatory .set file?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Launch .exe file that has associated .set file?

    Perhaps you may try:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Quote Originally Posted by Izandol View Post
    Perhaps you may try:
    Please Login or Register  to view this content.
    Ooh, good idea! Let me give that a try and I'll get back to ya...

    EDIT: Bummer, this did not provide any different results. It launched/ reacted the same way as when I tried:

    Please Login or Register  to view this content.
    Dynamics seems to launch in two parts; part one is the software window with a blank background, then a separate window opens up where you enter your username and password. The code you posted, and the code I just included, both launch the first window with the blank background, but the login window does not appear. My guess is that the code is not able to launch that .set file properly. I'm guessing that the .set file is what calls that login window to appear.

    Once you enter your username and password in the second window, it disappears, and you use the first window (the actual software) as you would with a normal software. Does that make sense?
    Last edited by Rerock; 12-02-2013 at 12:16 PM.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Launch .exe file that has associated .set file?

    Perhaps you must include the path for the .set file as well?

  5. #5
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Quote Originally Posted by Izandol View Post
    Perhaps you must include the path for the .set file as well?
    That's what I was thinking too, but I'm not quite sure how to go about it.

    Please Login or Register  to view this content.
    Result:
    Run Time Error '53': File Not Found

    Please Login or Register  to view this content.
    Result:
    Compile Error: With object must be user-defined type, object, or variant

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Launch .exe file that has associated .set file?

    Is the path for the 'set' file the same as the 'exe' file?
    If posting code please use code tags, see here.

  7. #7
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Quote Originally Posted by Norie View Post
    Is the path for the 'set' file the same as the 'exe' file?
    Yes, they are.

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Launch .exe file that has associated .set file?

    Hello Rerock,

    Add a new VBA Module to workbook and past this code into it. The macro will return the executable program (full path) associated with a file.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  9. #9
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Quote Originally Posted by Leith Ross View Post
    Hello Rerock,

    Add a new VBA Module to workbook and past this code into it. The macro will return the executable program (full path) associated with a file.
    Please Login or Register  to view this content.
    Hi, thank you for the reply. I created a new module and pasted the code, but it doesn't seem to 'do' anything? I see a private declaration and a function, but no routine to run? Am I missing something?

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Launch .exe file that has associated .set file?

    Hello Rerock,

    Here is an example...
    Please Login or Register  to view this content.

  11. #11
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Launch .exe file that has associated .set file?

    Perhaps:
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Hi Leith,
    VBA isn't liking that format for Shell. It asks for a "=", which I add, but then it says it's a compile error and wants to replace the "," with a ")"; negating the rest of the statement. Looked promising though.

  13. #13
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Launch .exe file that has associated .set file?

    Quote Originally Posted by Izandol View Post
    Perhaps:
    Please Login or Register  to view this content.
    Ding ding ding; we have a winner folks; thank you!

    Thank also to everyone else who provided solutions to try as well!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open/Launch Embedded file in workbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2015, 05:23 PM
  2. Command to launch rsf file from excel
    By JoelMessing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2009, 11:58 AM
  3. file won't launch
    By jeffjones54 in forum Excel General
    Replies: 4
    Last Post: 02-02-2009, 12:34 PM
  4. Launch Word file from Excel VBA
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 07-23-2006, 01:45 AM
  5. [SOLVED] How do I auto launch an excel file upon log in?
    By Starion in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 03:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1