Thread: Working Directory and Links

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    416

    Working Directory and Links

    I am trying to deploy an application, and I ran in to this weird problem. When I install my program it works as it should, but only when I got to the Program File folder and click on the *.exe file itself. When I launch the file from the start menu, which uses a link, it will not find the external files needed to run (such as data files, ini, whatever files I need). If I put these needed files in with the link where the start menu folder is, then it works correctly. I have printed off the working directories for both ways of launching and they have always returned the same C:\Program Files\blah blah blah which is what I want, but the link seems to be ignoring this.

    So, is there something i am not aware of with the way links work, and the current working directory?

    edit: I should mention that I am using the current working directory path, plus the names of the files to get absolute paths and it is still giving me this problem.
    Last edited by scwizzo; 08-06-2010 at 09:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. version of ls -l bug, only takes cwd :(
    By chl12 in forum C Programming
    Replies: 2
    Last Post: 06-12-2007, 02:44 AM
  2. Help Required!!!!!
    By bobthebullet990 in forum C Programming
    Replies: 14
    Last Post: 11-27-2005, 03:56 PM
  3. copy directory in C
    By Dbyte in forum C Programming
    Replies: 3
    Last Post: 06-14-2003, 12:00 PM
  4. Directory reading!
    By Unregistered in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:47 AM