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
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.
How to find the path from the file
Started by
shajilr
, Oct 15 2002 07:50
2 replies to this topic
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
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
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
BobT