Task

Delete a file called "input.txt" and delete a directory called "docs".

This should be done twice: once "here", i.e. in the current working directory and once in the filesystem root.




var fso = new ActiveXObject("Scripting.FileSystemObject");
 
fso.DeleteFile('input.txt');
fso.DeleteFile('c:/input.txt');
 
fso.DeleteFolder('docs');
fso.DeleteFolder('c:/docs');