+ Reply to Thread
Results 1 to 3 of 3

Run a .bat file from a macro (using a relative path)

  1. #1
    Registered User
    Join Date
    07-01-2004
    Posts
    20

    Run a .bat file from a macro (using a relative path)

    Hi, I have the following question:

    How can I run a DOS .bat (batch) file from within a Macro?

    This is what I came up with so far and it seems to work. The only thing is that I need this to have relative paths, running from the same directory the Excel Workbook is in.

    With absolute paths, this is what I have

    Please Login or Register  to view this content.
    The thing is I would need to run the web_hotel_check.bat file using a relative path...

    Any ideas?
    Thanks to all of your for your time.

    Titus
    Last edited by dominicb; 12-03-2008 at 10:30 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi Titus

    Please Login or Register  to view this content.
    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    07-01-2004
    Posts
    20
    Hi Richard,

    Thanks a lot for the quick help. I was so close but not there yet ;-))

    Titus

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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