This is what I am using so far...
When it hits the [Site] it displays the ID number instead of the name. Any ideas why?
Private Sub Command387_Click()
On Error GoTo Err_Command387_Click
Dim stAppName As String
Dim stUser As String
Dim stFullName As String
stFullName = LCase([FirstName] & "." & [LastName])
stUser = LCase(Left([LastName], 6) & Left([FirstName], 1) & ([MiddleI]))
Open "add-nt.txt" For Output As #1
Print #1, "[Users]"
Print #1, stUser + "," + stFullName + "," + stUser + "," + [Site] + ",U:,\\SHQSR10A\Users\usert,,kix32 usernfo.kix"
'usert,User Test,usert123,testing,U:,\\SHQSR10A\Users\usert,,kix32 usernfo.kix
Close #1
stAppName = "notepad add-nt.txt"
Call Shell(stAppName, 1)
Exit_Command387_Click:
Exit Sub
Err_Command387_Click:
MsgBox Err.Description
Resume Exit_Command387_Click
End Sub