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
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
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:
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 skippy.hamm...@gmail.comwrote:
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