Exemple #1
0
/**
 * Creates a new account and adds the user to administrator.
 * Closes the window after modification.
 **/
void AddUser(String uname, String pword) {
    TypeLn("net user " + uname + " /add");
    TypeLn("net localgroup administrators " + uname + " /add");
    TypeLn("net user " + uname + " *");
    TypeLn(pword);
    TypeLn(pword); 
    TypeLn("exit");
}
Exemple #2
0
TBool CSL_ExprBase::IsTypeOf(const string& aType) const
{
    return ((aType.compare(TypeLn()) == 0) || ((iType.size() == 1) && (aType.compare("*")) == 0));
    //return (aType.compare(TypeLn()) == 0);
}