Jump to content

cannot run file


Recommended Posts

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", "autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

it says that it cant run the file when i press ctrl+alt+a because it cant find the file...but i just FileInstalled the file so why cant it find it?

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", "autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

it says that it cant run the file when i press ctrl+alt+a because it cant find the file...but i just FileInstalled the file so why cant it find it?

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway_yim.exe")

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

I think you missed a \autoaway in there... It looks like it should be:

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway\autoaway_yim.exe")

Yep, but I think he'll get the idea, that if he want's to runit from there he'll have to install it to there.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

oh wait...

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir&"\autoaway\autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

t still says it cant find it

edit: its installing to @ProgramFilesDir\autoaway_yim.exe instead of in /autoaway...why wqould it do that?

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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