EdDyreen Posted June 10, 2012 Share Posted June 10, 2012 (edited) Microsoft Windows XP [versie 5.1.2600]AutoIt v3 Script 3.3.8.1I 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 June 10, 2012 by EdDyreen • Any number images • Images of any size • Any number of URLs • Any number of lines Link to comment Share on other sites More sharing options...
JohnOne Posted June 10, 2012 Share Posted June 10, 2012 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 More sharing options...
EdDyreen Posted June 10, 2012 Author Share Posted June 10, 2012 (edited) Ofcourse you are right, $PID = Run( ' "...FL.Studio.Producer.XXL v6.04 update.EXE" ' ) I'm such an idiot sometimes Thanks, JohnOne Edited June 10, 2012 by EdDyreen • Any number images • Images of any size • Any number of URLs • Any number of lines Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now