|
-
Mar 16th, 2001, 07:47 PM
#1
Thread Starter
Lively Member
Is there any way to get the users login name from the registry using VBScript? I can do it in VB6 but it requires a module.
-
Mar 16th, 2001, 08:24 PM
#2
Lively Member
somebody correct me if I'm wrong but I don't think that is possible. That would be a big time security risk from a scripting language. I think your best bet is going to be prompting the user for their name and storing it in a session variable or a cookie.
-
Mar 18th, 2001, 10:38 AM
#3
Guru
you can do it in VBScript, your users might get a security message though:
Code:
<html>
<head>
<script language=vbscript>
sub ReadIt()
dim oShell
set oShell = CreateObject("WScript.Shell")
alert(oShell.RegRead("HKCR\.vbp\"))
end sub
</script>
</head>
<body onload="ReadIt()">
</body>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|