Announcement

Collapse
No announcement yet.

Getting the current folder's full path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting the current folder's full path

    Hi Guyz

    The big Q is:Also at the modifying INI I cannot add simply the filename or .\filename which Iam trying to read from in the same directory where the exe is, I have to add the full path. Does SUF has a variable what tells me the actual directory's full path?

  • #2
    Re: Getting the current folder's full path

    This will depend on your particular install and how you are installing your application, however the default variable used to store the "Application Directory" is the built-in variable %AppDir%. You could therefore have something like:

    %AppDir%\MyFile.ini as the path.

    Comment


    • #3
      Re: Getting the current workinfolder's full path

      Hi

      Ok I tell U the full story then. After I finish the setup.exe finished I could have put the %APPDIR% to the registry or anywhere into an ini file, but let's pretend I don't want to.So afterwards I want to start our magic application (all the time! not only after setup) with another exe file -let's call start.exe- created by sf6, copied to the %appdir%, because I have to check some services what are running or not and magic is not capable of doing this.BUT! The start.exe doesn't know where is it starting. I want to read from an ini file in the current directory, but I don't know the full path. After the service checking I want to start magic, but I cannot because I have to add the full path to run it. So this is why Iam asking if suf6 has any variables to check the local directory's full path. I cannot add .\ it is not working.
      So the question is simply, is there a way to get the full path of the directory where the suf6 exe file is currently running?

      Thnk you so much...

      Comment


      • #4
        Re: Getting the current workinfolder's full path

        Try %SrcDir%

        Comment

        Working...
        X