Sign in to follow this  
Followers 0
GodForsakenSoul

running program

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

XD is like a face with a huge smile, and D: is a sad face...basically this: :)

Share this post


Link to post
Share on other sites

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Ý÷ Ù.¬,)-ì(®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)

:)

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  
Followers 0