Click to See Complete Forum and Search --> : How to get Windows path in javascript


sumitbatra1981
June 5th, 2008, 02:23 AM
HI All

How to get Windows path in javascript

(It might be C:\Windows or D:\Windows or E:\Windows)


Actually i want to access the win.ini file (stored in windows folder), to get some information about the installed software version.

I m not sure where the client might have installed its windows.

Please suggest me on this.


Thanks & Regards,
Sumit Batra

PeejAvery
June 5th, 2008, 09:18 AM
What installed software version? The win.ini file does not contain much data at all. On what operating system are you planning to run this?


The only way you are going to be able to do this is to use Internet Explorer and call an ActiveX object. Or, alternatively to ActiveX, you could use VBScript. Either way, you are restricted to IE.