PDA

View Full Version : saving file that already exists


vlitim
March 15, 2006, 09:54:48
When i save a document using the "save" property is there anway of checking to see if the file already exists and if so create a new one with a (1) on the end or something

Cheers

Tim

Gunnar Giffey
March 15, 2006, 18:19:03
Hi Tim,

This is not implemented in the Save method, but you can do it easily with the FileObject in VB6:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vaobjfilesystemobject.asp

vlitim
March 15, 2006, 18:45:32
Thanks thats what I ended up doing in the end

cheers