Re: [python-win32] windows firewall woes?

2012-03-09 Thread Andrew Hammond
Turns out that I needed to add app.Name = 'Python' to the code. Ugh. Andrew On Thu, Mar 8, 2012 at 9:22 PM, Mark Hammond wrote: > As a couple of guesses, I'd ensure you do this from an elevated process > (ie, "run as administrator") and also be sure to use fully-qualified paths. > > (The error

Re: [python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread Tim Roberts
Randy Syring wrote: > Do you need to quote the value sent to shell.run() since there is a > space in it? > > shell.Run('"C:\Documents and > Settings\dave\Desktop\MyMobile\MyMobiler\MyMobiler.exe"') Right. More than that, he needs to escape the backslashes or use a raw string, as in: shell.Run(

Re: [python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread Randy Syring
Do you need to quote the value sent to shell.run() since there is a space in it? shell.Run('"C:\Documents and Settings\dave\Desktop\MyMobile\MyMobiler\MyMobiler.exe"') ? - Randy Syring Development& Executive Director Level 12 Technologies

[python-win32] win32com can't find file but I can see it, confused

2012-03-09 Thread dave selby
OK I am a little confused, I have the following shell = win32com.client.Dispatch('WScript.Shell') print os.path.isfile(self.exe) print self.exe shell.Run(self.exe) The file self.exe exists, I get a 'true' from os.path.isfile, I can execute it on the command line AOK, its path is as I would expect