1. FW: Inconsistent results
- Posted by Mark.Ross at fcps.edu Aug 21, 2001
- 395 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C12A6F.5308D9F0 charset="iso-8859-1" Writing a program for our sites help desk (large school system) that is intended to change permissions for a user on a remote machine. It performs a "net use" command, then a "xcacls", using the system_exec(s1,s2) routine, using bindw/exw, version 2.2 The problem is that we cannot get consistent results. First try works OK; the xcacls returns the message "processed dir : x:|dir1\dir2". And it may work a second or third. But on some trys we get the message "No mapping between account names and security IDs were done." Error code 1332. The people who would know say the user accounts ARE there, and the same commands can be performed successfully by typing in the "net use" and "xcacls" directly via the command window. Sometimes the xcacls in the program would just not execute, with a -1 error code. This is a simple program, meant to replace a *.bat file, and hide from view the password used on the "new use" command. I'm a first time user of euphoria, so is there something that needs to be reset for each run? ------_=_NextPart_001_01C12A6F.5308D9F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit
2. Re: FW: Inconsistent results
- Posted by thinkways at YAHOO.COM Aug 21, 2001
- 424 views
you don't specify which O/S version your using, -1 would indicate command(file) not found. try specifying the full path to xcacls also try switching from system_exec to system() and pipe the stdout to a local results file, which you can later read into a message box --- Mark.Ross at fcps.edu wrote: > > > Writing a program for our sites help desk (large > school system) that is > intended to change permissions for a user on a > remote machine. > It performs a "net use" command, then a "xcacls", > using the > system_exec(s1,s2) routine, using bindw/exw, version > 2.2 > > The problem is that we cannot get consistent > results. First try works OK; > the xcacls returns the message "processed dir : > x:|dir1\dir2". And it may > work a second or third. But on some trys we get the > message "No mapping > between account names and security IDs were done." > Error code 1332. The > people who would know say the user accounts ARE > there, and the same > commands can be performed successfully by typing in > the "net use" and > "xcacls" directly via the command window. Sometimes > the xcacls in the > program would just not execute, with a -1 error > code. > > This is a simple program, meant to replace a *.bat > file, and hide from view > the password used on the "new use" command. > > I'm a first time user of euphoria, so is there > something that needs to be > reset for each run? > >