Jump to content
Sign in to follow this  
EdDyreen

wrong program run( 'process' ) ?

Recommended Posts

EdDyreen

Microsoft Windows XP [versie 5.1.2600]

AutoIt v3 Script 3.3.8.1

I have 2 files,

'E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL v6.04.EXE'

'E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL v6.04 update.EXE'

When issuing the run command the first file gets executed.

$PID = Run( 'E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL v6.04 update.EXE' )

Rename the first file its extension to .EXE_, and the intended program is run.

; handle AutoIt v3 Script 3.3.8.1 bug: run( 'may run the wrong file' )
FileMove ( _
   'E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL v6.04.EXE', _
   'E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL v6.04.EXE_' _
)

I wonder why ?

Edited by EdDyreen

• Any number images • Images of any size • Any number of URLs • Any number of lines

Share this post


Link to post
Share on other sites
JohnOne

It will try to run this

"E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL"

and then use these as command line arguments "v6.04 update.EXE"

Try "E:ADMINVIPTMPTMPFL.Studio.Producer.XXL v6.04FL.Studio.Producer.XXL" & '" "' & "v6.04" & '" "' & "update.EXE"

That's probably wrong but it is something to do with the spaces.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
EdDyreen

Ofcourse you are right,

$PID = Run( ' "...FL.Studio.Producer.XXL v6.04 update.EXE" ' )

I'm such an idiot sometimes ;)

Thanks, JohnOne

Edited by EdDyreen

• Any number images • Images of any size • Any number of URLs • Any number of lines

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.