Page 1 of 1

Save & Exit function does not work in Willspo template

Posted: 2004-08-07 16:33:58
by Toniglandyl
Hi,
I got a problem with the Save & Exit function in the Willspo MovieList template as it raises a script error. here is the script that deal with this stuff:

Code: Select all

function exit() {
	if (needToSave) {
		var fso = new ActiveXObject("Scripting.FileSystemObject");
		var orgFile = fso.GetFile(sourceFile);
		if (fso.FileExists("Backup/" + orgFile.Name)) {
			var tempFile = fso.GetFile("Backup/" + orgFile.Name);
			if (tempFile != null) {
				tempFile.Delete();
			}
		}
		orgFile.Copy("Backup/" + orgFile.Name);
		srcXML.save(sourceFile);
	}
	window.close();
}
Is there something wring with this code? Is there something I have to do so that it can manipulate the files?

Posted: 2004-12-26 15:53:43
by Toniglandyl
Nobody to help me :badidea:

Posted: 2004-12-26 16:18:30
by antp
Maybe because nobody can help you ?
I do not know if Willspo still comes here :/
(how come you come back on this old topic just now? You received an e-mail when I moved the topic to the newly-created section?)