I'm the using the command
dir /AD /B "\\computerName\users\" >> user_export.log
Is it possible to create a batch file that asks the user to enter the Computer Name and then when the end user enters the computer name for it to be entered in the UNC name listed above, so
dir /AD /B "\\**INPUT VALUE ENTERED HERE**\users\"
Hopefully this makes sense.