Re: FW: Inconsistent results

new topic     » goto parent     » topic index » view thread      » older message » newer message

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?
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu