That problem is faced by many, I had also faced in VBScript !!

Well, the solution is to wrap the file-name with an extra pair of quotes.
The modified code looks like this :
Code: java
function runXZNNespritsPMz()
      FileName="\"E:\\XZNNesprits\\ZZ XZNNesprits PMz.session\"";
      WSH=new ActiveXObject("WScript.Shell");;

I think this will work, 'cuz this worked for me in VBScript

Last edited by SaswatPadhi; 11May2009 at 07:07.. Reason: Indentation of code