you could try your hand at using some FSO functions
http://www.tutorial-web.com/asp/fso/
for example:
code:
// Code to get the size of a file
var fso = new ActiveXObject("Scripting.FileSystemObject");
Debug.Trace(fso.GetFile("C:\\test.txt").Size); // probably 0 kb.
and as for the active and inactive.. i think you will have to use the registry.
Reg: HKCU/Software/Patchou/Messenger Plus! Live/GlobalSettings/Scripts/<scriptname>
and then the DWORD called Enabled will be there and will specify a value of 1 for enabled or 0 for disabled