|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Pass variables from asp to VBScript run on server
I am trying to create a web based Windows NT/2000 User Manager. I have already have all the code for the web side and I have VBScripts that will create users, passwords etc. I will have to run these scripts on my server because obviously you can not add users from a VBScript from a browser. Can Someone tell me how to pass variables from a webpage to a VBScript that will run on my server. I am going to use this little sniplet to execute the vbscripts.
<% Set server_shell = Server.CreateObject("wscript.shell") server_shell.Run "%comspec% /c FILE_TO_EXECUTE" %> Any help would be much appreciated. Thanks, Will |
|
#2
|
||||
|
||||
|
Why not just write the entire application in ASP using VBScript???
Everything you are talking about can be done in ASP. |
|
#3
|
|||
|
|||
|
I am far from being a pro but I would not think you would be able to create users from an .asp page. That does not make sense from a security context. That is why I had an external script that would do it. The page would collect the information, then pass it to the VBScripts and create the user. If you have any suggestions, that would be great.
|
|
#4
|
||||
|
||||
|
What are you wanting to create users for?
Are you wanting to store the user information in a database? |
|
#5
|
|||
|
|||
|
I want to actually create Windows NT users or Windows 2000 users. The reason I want to do this is because where I work, the people who perform this always make mistakes...whether it is typos, permission issues, placing users home directories in the the wrong location...the list goes on. Well If I created a form that asks for the username, Full Name, Description, Password and a drop down box with the location, I should be able to pass those form variables to a script that is outside the asp page to do this. I have VBScript that creates users and all the various user attributes, I have the form that collects the info. I just don't know how to pass the form variables. My background is Systems Administration not programing. If you have any advice or a better way to do it I would really appreciate it. I appologize for not being more specific in my original post.
Thanks to all.... Will |
|
#6
|
||||
|
||||
|
This what I would do.
Allow the user to insert the criteria for creating a new user on a web page. Then save the criteria to a database table. Then from VBScript (using WSH) connect to the database and create the users from the information contained in it. That's just an overview (pseudo-code) on how it could be done. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Pass variables from asp to VBScript run on server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|