I wrote a script (.js) which should copy all text from one file to another, but it doesn't work (i run it on hard disc):
var fso = new ActiveXObject("Scripting.FileSystemObject");
var myInputTextStream = fso.OpenTextFile("C:\\FILE\\back_log.log", 1, true);
var log = "C:\\Temp\\26_04_2012_16_22_49\\ext.txt";
var myOutputTextStream = fso.OpenTextFile(log, 8, true);
while(myInputTextStream.AtEndOfStream)
{
myOutputTextStream.Write(myInputTextStream.ReadAll());
}
//myInputTextStream.Close();
//myOutputTextStream.Close();
WScript.Echo("FINISH!!!");
Could anybody coorrect me (or code=))? Thanks a lot.