|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
WScript.CreateObject/
I have this code to get the NT username... i was wondering, if I store the username in a variable, is there a way for me to pass that variable to a javascript function??
code below.... Code:
function getuser()
dim shell, WshNetwork
set shell = WScript.CreateObject("WScript.shell")
Set WshNetwork = WScript.CreateObject("WScript.Network")
msgbox wshNetwork.username
msgbox WshNetwork.computername
end function
i want the wshNetwork.username to be stored in a variable that i can pass to a javascript function to have saved to a database. Thanks in advance for your time and assistance. Have a blessed day! TB Jacksonville, NC Last edited by misskaos99 : January 21st, 2007 at 11:14 AM. Reason: error |
|
#2
|
||||
|
||||
|
why javascript? if you already depend on vbscript, use the
same language to interact with the database. |
|
#3
|
||||
|
||||
|
If you package your script in a WSF file, you can use multiple languages within the same script. However, I suggest you have all of your code in the same language.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > WScript.CreateObject/ |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|