Link to home
Start Free TrialLog in
Avatar of helpdesk03
helpdesk03

asked on

Help with 'For Loop' - Running simultaneous from text file

I am trying to get this batch file to work to delete all of the profiles off machines that a user has logged into.

for /f %a in (computers.txt) Do delprof2 /u /c:\\%a

I currently have all of the computer names in computer.txt but the problem is that it is taking quite a while for delprof2 to run on each of these computers one-by-one.

Is there a way for the batch file to read in each line and run them simultaneously? Any suggestions would help
Thanks!
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of helpdesk03
helpdesk03

ASKER

The start command worked perfectly
Thanks!