Jump to content

wrong program run( 'process' ) ?


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...