rjrobinson2005
New Member
- Joined
- Feb 18, 2015
- Messages
- 1
I have been attempting to execute the following DOS command via excel vba
cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt
Dim RetVal
RetVal = Shell("cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt", 1)
although it opens a dos window but does not execute the net user command.
Any suggestions greatly appreciated
cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt
Dim RetVal
RetVal = Shell("cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt", 1)
although it opens a dos window but does not execute the net user command.
Any suggestions greatly appreciated