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

CopyFile FAILS on Windows 95 platform


1 reply to this topic

pnllan

pnllan
  • Members
  • 1 posts

Posted 15 May 2001 - 17:21

NOTE the CopyFile statement below.  This statement coninually fails ONLY on Windows 95...Window98 and Windows 2000 works perfect...HELP!!!

nResult0 = DeleteFile(svTargetFolder + "\\WRS3UPG.MDE");
if (nResult0 < 0) then
MessageBox("Unable to delete file WRS3UPG.MDE", SEVERE);
abort;
endif;
ParsePath(svParsePath, svSelectedFile, PATH);
nResult1 = RenameFile(svParsePath + "\\WRS3.MDE", svParsePath + "\\WRS3UPG.MDE");
if (nResult1 < 0) then
MessageBox("Unable to rename WRS3.MDE to WRS3UPG.MDE", SEVERE);
abort;
endif;
nResult2 = CopyFile(svParsePath + "\\WRS3UPG.MDE", svTargetFolder + "\\WRS3UPG.MDE");

//  THE ABOVE COPYFILE STATEMENT RETURNS < 0 ONLY ON WINDOWS95 SYSTEMS...w98 & W2K WORKS PERFECT

if (nResult2 < 0) then
MessageBox("Unable to copy WRS3UPG.MDE to TARGETDIR", SEVERE);
abort;
endif;

(Edited by pnllan at 11:23 am on May 15, 2001)