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

Problem facing in Is function in Windows 98


1 reply to this topic

margrat

margrat
  • Members
  • 7 posts

Posted 05 September 2002 - 06:37

i am adding the snippet of code

STRING dest ;
dest = WINSYSDIR + "unidrv.dll" ;
if(  Is(FILE_EXISTS ,  dest) == 0) then
// i am copying this file indicating that file does not exists
endif ;

The problem is, even if the file is present in the specied directory it is returning false in windows 98.But in Win2k it is returning true.
How can this be handled.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 September 2002 - 17:06

Use the ^ operator instead of + to concatenate paths and see if that fixes the problem:

dest = WINSYSDIR ^ "unidrv.dll" ;