[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

increment user names by 1

I would like to write a for next statement that would increment form user to user60 and send a default password to a desktop server. So for instance during login to say a NT server User will log in then User1, User2 and so on.
0
smurray
Asked:
smurray
1 Solution
 
vikiingCommented:
For I%=1 to 60
     Username$="User"+Format$(I%)  'Will generate "User1" to "User60"
     <the rest of the process>
Next I%

0
 
eduncCommented:
use the code that he put before and then use appactivate and sendkeys to send the pw to the login window.  
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now