Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to find the path from the file


2 replies to this topic

shajilr

shajilr
  • Members
  • 11 posts

Posted 15 October 2002 - 07:50

Hi,
   I want to find the path from the the file selected .Here my user will be double clicking the setup.exe .Can I get the path in which the corresponding setup.exe is residing. Please note that it can be in a Shared drive or in a subfolder in a shared drive.
Could any one help me regarding this

Thanks,
Shajil

Herwig Schmidhuber

Herwig Schmidhuber
  • Members
  • 7 posts

Posted 15 October 2002 - 12:21

Hi shajilr,

try following:

  nLength_old = StrLength (SRCDIR);
  nLength_new = (nLength_old - 8);
// (nLength_old - 8) because "Setup.exe" has  8 digits              
   StrSub (szString,SRCDIR, 0, nLength_new);
   TARGETDIR = szString;

regards
Herwig

BobT

BobT
  • Members
  • 24 posts

Posted 15 October 2002 - 12:42

I believe you will find that SRCDIR is the path to the folder with setup.exe.  It does not include "setup.exe", so all you need is SRCDIR.

BobT