swzoh wrote  (on 08.08.2006 01:07):

>> Maybe you have to try (:notice the leading blank in param):
>> file.runas(gvAdminUser, gvAdminPass, _pp_bin, ?! win.debug("boom")!)
> 
> BTW, I missed the first part of your message. No, the PP's command
> will not run as Admin, but as the current user at last. You may
> consider using PPBangTwice which you can find in files section.

Hi Sean,

I've forgotten it completely, it's PPBangTwice already. And as for your 
other question about the space (?! win.debug...!). Yes, I've tried it 
too. Unfortunately it doesn't work.

The weird thing is, if I open a shell as admin and start PPBang 
(PPBangTwice) like "PPBang.exe Message hello world", it works, i.e. 
admin can use my normal user's PowerPro instance. But not from 
file.runas, I always get a "file not found" error. If I run this

file.runas(gvAdminUser, gvAdminPass, ;;+
   ?"C:\Tool\Shell\PowerPro\ppBang.exe", ?# *Message "hello"#)

I get >>File not found "hello"<<. It looks file.runas tries to interpret 
everything after the first param as file, which actually doesn't happen 
with other programs (I start a lot of 4NT commands with /k and tons of 
parameters). Only ?# hello# without a command as param does not cause 
any syntax error either. ?# *Debug# does not open the debug window either.

Any more ideas? Bruce, what do you think? Is it PPBang or PowerPro?

Peace,
Cü


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to