Hi Bruce, While I was working on file.runas problems, I think I've found out a bug.
I have a script which is triggered by ClipCaptured, which in turn sorts out non-printable characters, adds machine-name, timestamp etc. to the clip name and saves it under \Clip. It also uses "exefilename" to sort the captured clips according to the current app where the clip is captured, e.g. I get "UEdit32" if I copy something in Ultraedit. Until now, I used to use this line: --------------- _exename = ifelse(exefilename ne "" && exefilename ne "?", ;;+ exefilename, "unknown") clip.ToFile(....... ++ _exename ++ ......) --------------- I don't remember it now but some other programs refused to return their identities, thus the "?"-check. Now, if I launch a program with file.runas, exefilename returns gibberish and, I think, even polymorphic, something like ?<nonprintable-characterbox(es)>. But the return from file.runas is immune to the "?"-check. So I've tried to clean the name up with: --------------- _code = regex.replace(_exename, "[EMAIL PROTECTED] ]+", ;;+ "_", "_exename") --------------- which is surprisingly not working! So I've changed the ifelse line to this: --------------- _exename = ifelse(exefilename ne "" && select(exefilename,1) ne "?", ;;+ exefilename, "unknown") --------------- Well, at least it works. This might not be a PP bug but a limitation of Windows, but IMO PowerPro should return "unknown" or "undefined" if exefilename fails to extract the real name. HTH, Cüneyt descent49 wrote (on 07.08.2006 17:55): > Hi there, > > I'm working as a non-admin user and I'm trying to run some PP commands > with the admin rights, so far with no luck. I've tried using PPBang, > it doesn't work either.... 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/
