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.

XCopy - do not overwrite Files!?!

1 reply to this topic


  • Members
  • 2 posts

Posted 24 March 2003 - 17:35


I need to copy several files and folders in IS6.3 Pro by script.  So, I use XCopy... If there exists already some files or folders, the script must not overwrite these existing files or folders. The matter is, that XCopy doesn't support the "property" - do not overwrite (at all)... Has anybody an idea, how to solve this?

Thanks in advance


  • Full Members
  • 77 posts

Posted 24 March 2003 - 23:43

1.Add the names of the files you are going to Xcopy() to a list.
2.Then, scroll through the list and use the FindFile() function.
   a.If the file exists, then do nothing.  FindFile() returns 0 (zero)
   b.If the file does not exist, then Xcopy(). FindFile() returns <0 (negative)

Repeat as necessary for each folder.