+ Reply to Thread
Results 1 to 3 of 3

Launching a saved bat file using VBA - CMD prompt flickers but doesn't run

  1. #1
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Launching a saved bat file using VBA - CMD prompt flickers but doesn't run

    Hi,

    I'm clueless with .bat files however a colleague has built a tool which when double clicked form the folder location does what it does, however if you follow the hyperlink to file location it doesn't run properly it just flickers the cmd prompt open and close.

    I use
    Please Login or Register  to view this content.
    to open various file or web pages through my dashboard but I'm not sure what VBCode I need to use to get this to work.

    I've seen online this:

    http://stackoverflow.com/questions/3...xcel-using-vba

    But I'm not sure what ChDir or Shell are set as or how to apply to my scenario.

    Launch in the above code is a named range for the path to the bat file.

    Thanks in advance

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Launching a saved bat file using VBA - CMD prompt flickers but doesn't run

    Sorry to bump, but any views out there on this please?

    Thanks in advance

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Launching a saved bat file using VBA - CMD prompt flickers but doesn't run

    In case you know the path of your bat file
    Please Login or Register  to view this content.

+ 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. [SOLVED] Prompt user to locate a file to then be saved to predetermined directory
    By Ethanrholt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2015, 09:01 AM
  2. Launching choosen file in different application, Running in background
    By mbrandt5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2015, 11:11 PM
  3. [SOLVED] Macro to prompt user to select a file and the selected file should saved in location
    By logesh excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2015, 03:43 PM
  4. Tracking changes with a prompt every time a sheet is saved with vba
    By Speshul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2013, 09:25 AM
  5. Excel Macro for launching script file to AutoCAD
    By Vinod Trivedi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2012, 05:15 AM
  6. [SOLVED] File Launching and References Problem
    By Stratuser in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2005, 12:10 PM
  7. [SOLVED] Launching a batch file
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2005, 06:05 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