General discussion

Locked

I have a doubt in VB Script

By inbarasank ·
Hi,
I have a doubt.is it possible to get the Server by executing the script in the client in VB script.If so please tell me how to write the script.Can anyone tell me which is the location in the registry in which NT stores the current Reg size andthe set reg size.
Please flow ur inputs to me which will be very helpful to me.
Rgds
Inbarasan

This conversation is currently closed to new comments.

21 total posts (Page 1 of 3)   01 | 02 | 03   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

I have a doubt in VB Script

by Shanghai Sam In reply to I have a doubt in VB Scri ...

You can use registry API calls to retrieve the information you want, although I've never tried it from VBScript. You might try encapsulating the API calls in a VB DLL and using the DLL from VBScript. However, there may be a class that will do the quering for you and return the results.

Try RegConnectRegistry to specify what machine you want to connect to, then the standard RegOpenKeyEx, RegQueryValueEx and RegCloseKey to get the information you want.

The information you're looking for, according to MSDN, is somewhere in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control key, but I haven't been able to find out anything more specific than that.

Hopefully this will get you started.

Glen

Collapse -

I have a doubt in VB Script

by inbarasank In reply to I have a doubt in VB Scri ...

Poster rated this answer

Collapse -

I have a doubt in VB Script

by inbarasank In reply to I have a doubt in VB Scri ...

Poster rated this answer

Collapse -

I have a doubt in VB Script

by Glen_McLeod In reply to I have a doubt in VB Scri ...

I got disconnected. That's my answer above.

Glen

Collapse -

I have a doubt in VB Script

by Glen_McLeod In reply to I have a doubt in VB Scri ...

I just found something in the WMI classes (Windows Management Instrumentation) that might solve this. Using WSH (Windows Scripting Host) you can connect to the WMI objects and use the 'StdRegProv' class to perform most of the API calls I mentionned.

Glen

Collapse -

I have a doubt in VB Script

by inbarasank In reply to I have a doubt in VB Scri ...

Hi,
I am starter in VB script.Can u just tell me how to connect to the WMI objects and use the 'StdRegProv' class to perform most of the API calls I mentionned.
If u could write the code and send me,it will be very useful to me.
Rgds
Inbarasan

Collapse -

I have a doubt in VB Script

by Gicu Artistu' In reply to I have a doubt in VB Scri ...

If you're talking about the client side script, I don't know of any method that could get to the server from the client side(aside from writing a plugin that is then embedded in a page and this plugin could have methods to get to the server, document.plugin.method[go to server and do something]).
If you're talking ASP then you could write ASP code that could instantiate a COM obj and pass some results from those obj to the client script (but this happens before the html response is pushed to the client.
<HTML>
<HEAD>
<TITLE><%= text.GetString("TITLE") %></TITLE> //server code
<!--#INCLUDE VIRTUAL="look.inc"-->
<!--#INCLUDE VIRTUAL="help.inc"-->
<SCRIPT LANGUAGE="JavaScript">
lib = "<%= getLib() %>";//Server code

Any other questions, e-mail me.

Collapse -

I have a doubt in VB Script

by Gicu Artistu' In reply to I have a doubt in VB Scri ...
Collapse -

I have a doubt in VB Script

by inbarasank In reply to I have a doubt in VB Scri ...

Poster rated this answer

Collapse -

I have a doubt in VB Script

by inbarasank In reply to I have a doubt in VB Scri ...

Poster rated this answer

Back to Web Development Forum
21 total posts (Page 1 of 3)   01 | 02 | 03   Next

Related Discussions

Related Forums