GodForsakenSoul Posted March 13, 2008 Share Posted March 13, 2008 i think I've broken a record in being a retard. my code so far consists of ONE line and it won't run. Run ("autoit-v3-setup.exe", "C:\Downloads\(sergei) nightshades folder\unsorted mess\", @SW_MAXIMIZE) it whines that it can't open the "external program" and "system can not find the specified file", however, it's THERE. i see it. that alone should be enough. however, for some reason, it refuses to run properly. what did i do wrong and how do i fix? Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 13, 2008 Share Posted March 13, 2008 (edited) You could try this: FileChangeDir("C:\Downloads\(sergei) nightshades folder\unsorted mess") Run ("autoit-v3-setup.exe", "", @SW_MAXIMIZE)Or this might work: Run ("autoit-v3-setup.exe", "C:\Downloads\(sergei) nightshades folder\unsorted mess", @SW_MAXIMIZE)The basic problem is narrowed-down to the trailing backslash in the folderpath, the fact that you are happy to parade a god-forsaken soul, or lastly, both. Edited March 13, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
GodForsakenSoul Posted March 13, 2008 Author Share Posted March 13, 2008 ignore the folder name. i was young and stupid. XD also, it seems to dislike line 2. Run ("autoit-v3-setup.exe", "", @SW_MAXIMIZE) D: Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 14, 2008 Share Posted March 14, 2008 (edited) i was young and stupid.Such a self-effacing attitude as representing in the above is most unlike the truly forsaken.What do these mean:XD... D: Edited March 14, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Swift Posted March 14, 2008 Share Posted March 14, 2008 XD is like a face with a huge smile, and D: is a sad face...basically this: Link to comment Share on other sites More sharing options...
MHz Posted March 14, 2008 Share Posted March 14, 2008 also, it seems to dislike line 2. Run ("autoit-v3-setup.exe", "", @SW_MAXIMIZE)Maximize is disabled by the installer so @SW_MAXIMIZE seems unneeded? If the file being run is not in the current working directory, then you may need to specify the path to the file. Run('"C:\Downloads\(sergei) nightshades folder\unsorted mess\autoit-v3-setup.exe"')oÝ÷ Ù.¬,zÚ)jË-ì(®H§Ø«yËh¯+h¶¬r¸©µ«^Åç.¶*'²¨¹Ê.Û¬yÊ'v+b¢v¥r^¶^²Ûayìb²×§qê¶W¢»§jëh×6$file = 'autoit-v3-setup.exe' $dir = 'C:\Downloads\(sergei) nightshades folder\unsorted mess' If Not FileExists($file) Then If FileExists($dir & '\' & $file) Then If Not FileChangeDir($dir) Then Exit 2 EndIf Else Exit 1 EndIf EndIf Run($file) 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