Hi
var filesytem = new ActiveXObject ( "Scripting.FileSystemObject" );
filesytem.FileExists("C:\\IO.sys")
The above two lines will give you that whether the file exists or not
in the client's m/c.
But this will work only in IE not in Netscape.
For browsers like netscape this code will throw an exception.
One thing we can do is that catch the exception and give msg to user
accordingly.
With Regards,
Mangesh
-----------------------
Hi,
I got your email from p2p.wrox.com forum where you had posted the problem as "javascript filesystem"
I want to do the same thing with my code, where i want to find out whether a particuler file exists on the client machine or not. If
you can help me out in doing it, that will be great.
Looking forward for a helping hand.
Warm Regards,
Jasvinder Singh Bawa
Senior Developer
www.ishir.com <http://www.ishir.com>
ISHIR INFOTECH Pvt. Ltd.
16 (2nd Floor), Community Center
East of Kailash,
New Delhi - 110065, India
Phone: (+91.11) 51625702/3/4
Fax: (+91.11) 26435928
"Building Business Value Through Technology"