Francis Schep

Greenhorn
+ Follow
since Jun 02, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Francis Schep

Hi,
If you could send me the code or cut and paste the code in mail, then it will be easy for me to identify were the error is.
If its not possible then theck this .zip file from :

http://ireport.sourceforge.net/subreport_tutorial.zip

Cheers mate

Ramil.Rahman
Zerone Consulting
email : ramilka@rediffmail.com
Hi to you all,
I have a bit of a puzzle here. I'm trying to execute a "runas.exe" command to grantAuthority for a directory somewhere in my network. To pipe the password in runas I use "sanur". From a windows cmd.exe this all work fine. The syntax is something like this:
C:\temp\runas /user:aUser "C:\temp\xcacls \\networkplace\c\temp\somedirectory /g superUser:c /e" | C:\temp\sanur KLmn500
runas.exe is standard windows. sanur is shareware. xcacls.exe can be found in de windows resource kit.
The same put in to runtime.exec{"cmd.exe","/c","C:\temp\runas /user:aUser \"C:\\temp\\xcacls \\\\networkplace\\c\\temp\\somedirectory /g superUser:c /e\" | C:\\temp\\sanur KLmn500"};
The process returns ExitValue: 1 and does nothing.
Probably the "|" is the little bugger. Anyone ???
18 years ago