The best thing to do is add this to your batch file:
REM echo 1=%1
REM echo 2=%2
REM echo 3=%3
REM echo 4=%4
REM echo 5=%5
REM echo 6=%6
REM echo 7=%7
REM echo 8=%8
REM echo 9=%9
pause
Then delete a test user, and the above will echo the values to the screen so you can see what they equate to.
Here is a sample that you can experiment with that uses the rmtshare.exe utility:
@echo on
if %1 == ADD goto ADD
if %1 == MODIFY goto MODIFY
if %1 == DEL goto DEL
goto END

rmtshare \\%5\%6 /DELETE
rd \\%5\E$\users\%3
goto END
:ADD
goto END
:MODIFY
goto END
:END
Leave a comment: