Jump to content

DOS Help?


Recommended Posts

A friend and i are new to the world of Scripting and Programming, and we are trading programs back and forth. I have a pretty good idea, and have the basic layout of my script done, but i have one problem: i need to know his net user. Yes, my program will shut off his keyboard and mouse, and then go into CMD and change the password. But this needs to have the Computer User's name. This can be found by typing in "net user", and its the third name. Is there any way to have that name be a variable? And, if so, how would that variable be written out? Here's what i have so far:

#RequireAdmin

BlockInput(1)

Run("cmd.exe")

WinWaitActive("Administrator: C:\Windows\system32\cmd.exe")

Send("net user owner *{ENTER}")

Sleep(500)

Send("password{ENTER}")

Sleep(500)

Send("password{ENTER}")

Send("Gotcha{ENTER}")

Sleep(1000)

BlockInput(0)

Any Suggestions?

Link to comment
Share on other sites

the ONLY help ill give.. isn't help at all but common sense

LOOK INTO THE HELPFILE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...