Jump to content

running program


Recommended Posts

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

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

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

:)

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...