Board index » delphi » Executing command-line instructions / Adding NT users and setting directory permissions via CGI or ISAPI
Jeff Wischkaemper
![]() Delphi Developer |
Mon, 29 Jan 2001 03:00:00 GMT
Executing command-line instructions / Adding NT users and setting directory permissions via CGI or ISAPI
Hey, i need to write a web application (isapi, cgi-bin, cgi-win,
whatever.. ) that can add nt users. we got a console app written that can spawn the net and cmd programs and add users, but this doesn't work when we try and run it as a cgi. actually, here's the code we have so far(as i said, it works locally, if anyone knows how to do this(through asp, some api, whatever), PLEASE Appendix A: procedure createdr(dirname:string); procedure setsecurity(s,t:string); ShellExecute(0, 'open', 'net', pchar(c1), nil, SW_SHOW); //**** procedure createuser(s,t:string); begin procedure TWebModule1.WebModule1adduserAction(Sender: TObject; Appendix B: case WinExec(pchar(c1),SW_hide) of case WinExec(pchar(c2),SW_hide) of -jeff |