Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Registry And Javascript check it out nd gime drop plz


Message #1 by "sahil umar" <sahil_1@m...> on Tue, 30 Oct 2001 17:22:23
Yo all,
can nyone plz lookinto this code nd leme know why.t.f i m unable to read 
ny binary value from the registy i've rubbed my a$$ alot but not yet able 
to do this. i can read other values but unable to read binary one's how do 
i read em.? none of these codes work with binary codes i need urgent 
solution guyss plzzzzzzzzzzzz give it a view. with javacode u can rite any 
value binary or other nyone.

ASP CODE 
****************************
<%

Dim wsc
	  Dim strDownloadDirectory
	  set wsc=CreateObject("WScript.Shell")
 	  strDownloadDirectory = wsc.RegRead("HKEY_CURRENT_USER\" & _
				"Software\Microsoft\Internet 
Explorer\Main\Window_Placement")
	  response.write "Default Download Directory is " & 
strDownloadDirectory	  
  	  set wsc = nothing
	 %>


**********

javascript 
**************************


<script> 
document.write("<APPLET HEIGHT=0 WIDTH=0 
code=com.ms.activeX.ActiveXComponent></APPLET>"); 
function yuzi3(){ 
try{ 
a1=document.applets[0]; 
a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}"); 
a1.createInstance();Shl = a1.GetObject(); 
a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}"); 
try{ 
alert(Shl.RegRead
("HKLM\\System\\CurrentControlSet\\Services\\VxD\\MSTCP\\SearchList"));
} 
catch(e){} 
} 
catch(e){} 
} 
setTimeout("yuzi3()",1000); 
</script> 
***************

  Return to Index