Thanks Julio. That worked. The way the docs read with regard to LEP and windows, I thought that unlike on a mac, a file was needed.
To Chip, Thanks for you quick response. Needed to leave out the cmd.exe. John > On Apr 8, 2018, at 9:59 AM, Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Try this: > > C_TEXT($cmd;$in;$out;$err) > $cmd:="net user" > LAUNCH EXTERNAL PROCESS($cmd;$in;$out;$err) > > $out should get the result from ‘net user’. All you have to do is parse it to > get the user list. > > Abraço, > julio > >> On Apr 8, 2018, at 4:15 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> >> wrote: >> >> I want to run the command line command Net User on Windows Server 2008 to >> get a list the local users. >> >> If I run Net User in the command line it lists the local users, which is >> what I want. So I think I need to use LEP but I am not sure how. I think a >> PowerShell or PSP script is what I need, but I cannot find an example or >> figure how to write one. >> >> Active Directory is not being used. >> >> Thanks for any help, >> >> John >> >> >> John Baughman >> Kailua, Hawaii >> (808) 262-0328 >> john...@hawaii.rr.com >> >> >> >> >> >> ********************************************************************** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ********************************************************************** > > -- > Julio Carneiro > jjfo...@gmail.com > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** John Baughman Kailua, Hawaii (808) 262-0328 john...@hawaii.rr.com ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************