File Manipulatio in JScript

Hi,

I am writing some scripts which need to do various jobs, some of this will be creating directores, copying files, deleting files etc.

Is there any way of doing this in JScript without having to call Run("cmd /C md d:\dir") for example.

There must be a standard COM object in windows that I can use for this.

Note: This is not a web application, just something that will be used on a local windos machine.

Thanks,
[463 byte] By [SJ Smith] at [2007-11-19 22:49:31]
# 1 Re: File Manipulatio in JScript
Hi,

I think this is what you are looking for:

var fso = new ActiveXObject("Scripting.FileSystemObject");

Search the web for some more references on FileSystemObject to find out it's methods.

Byron
Bnt at 2007-11-8 0:40:15 >
# 2 Re: File Manipulatio in JScript
Exactly what I was looking for, Thanks
SJ Smith at 2007-11-8 0:41:16 >