+ Reply to Thread
Results 1 to 1 of 1

Directory that external Pascal program detects is wrong

  1. #1
    Registered User
    Join Date
    01-07-2016
    Location
    Mannheim, Germany
    MS-Off Ver
    Office 2015
    Posts
    2

    Question Directory that external Pascal program detects is wrong

    Hello dear community,

    I have the following problem:
    When I start an external Pascal program from Excel using VBA (Shell), the Pascal program is unable to find out its correct directory using GetCurrentDir, but instead GetCurrentDir returns my documents folder (where neither the excel file nor the Pascal file is in). When I start the program directly, not using Excel VBA, GetCurrentDir works fine. By now I have solved this by just not using GetCurrentDir, instead typing the correct directory, but I would like to be able to move the folder containing the programs without adjusting the program code.
    Do you know why this problem might occur and how to solve it?

    Thank you very much

    Madding
    Last edited by Maddingl; 01-07-2016 at 06:27 AM.

+ 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. Website excel list 'points' at wrong directory
    By cawsandboy in forum Excel General
    Replies: 10
    Last Post: 03-16-2015, 05:21 AM
  2. Controlling an external program
    By mic_bo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2014, 02:43 PM
  3. Program to open and append all files in a given directory......not work at ~ 92k rows
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2011, 08:50 PM
  4. How to modify current looping directory program to include subfolders
    By 1SLwLS1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2010, 12:37 AM
  5. Program install directory ???
    By andy1066 in forum Excel General
    Replies: 0
    Last Post: 11-07-2007, 08:36 AM
  6. Hyperlink to an external program
    By furbiuzzu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2005, 06:17 PM
  7. [SOLVED] Run external program.
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2005, 08:06 AM

Tags for this Thread

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