Hello, I'm trying to make a batch file that will allow me to fill in a field with a user name for a roaming profile ownership command. Having to retype this command over and over again is tedious. So I created the following code below; but I'm clueless as to how to change this one field within the command in this batch file for each user. I have some past expereince with C++ and COBOL so I understand programming logic but batch coding is just a matter of understanding the commands. here is the command: psexec -s "icacls" "d:\profiles\username.DOMAIN.V2" /grant administrators:F /t the name is bold is the field i'd like to change on each execution of this batch program so I can breeze thru all 550 of these roaming profile recreations since we have a corrupt print driver that f***ed all of the profiles on 6 TS servers including the roaming profile which is now corrupt on all of them. Takes about 25 minutes per user and 550 users ya do the math, lol!!!! here is my code so far, any help would be appreciated. @echo offcolor 0Atitle Corrupt Roaming Profile Change.:startecho Welcome, %USERNAME%echo What would you like to do?echo.echo 1. Click here for a Nude photo!echo 2. Take Ownership of User's Roaming Profileecho. echo 0. Quitecho.set /p choice="Enter your choice: "if "%choice%"=="1" goto pervertif "%choice%"=="2" goto ownership-changeecho.if "%choice%"=="0" exitecho Invalid choice: %choice%echo.pauseclsgoto start:pervertclsecho your a pervert, you know it, you clicked on this option shame on you!!!echo.goto cancel-special:ownership-changeecho.echo.psexec -s "icacls" "d:\profiles\username.DOMAIN.V2" /grant administrators:F /t echo roaming profile forced ownership change in progress...echo.:cancel-specialset /p cancel="Type cancel to stop action: "if not "%cancel%"=="cancel" exitclsecho Action is cancelled.echo.pauseexit ---------------------------- this is what I'm trying to do. Basically the command below is used to force ownership of the roaming profile since it's corrupt. What I'm hoping is possible is to make a input field that allows me to change the last part of the field below "username.domain.v2" on each execution of the batch file so I can breeze thru the recreations. :ownership-changeecho.echo.psexec -s "icacls" "d:\profiles\username.DOMAIN.V2" /grant administrators:F /techo roaming profile forced ownership change in progress...echo. I'm trying to figure out a way to do like a command like this, just don't know the command if ."d:\profile\" == "d:\profile\" input field is require for last clause I just don't know how to script it into the code to input it into the batch field above... Any help would be appreciated, it's just this part i'm unsure how to code, everything else works fine....