babou Posted October 11, 2007 Posted October 11, 2007 Helo all Why is not possible to compile this ? $Search = FileFindFirstFile($FileUrlPath1) If $Search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $File = FileFindNextFile($Search) If @error Then ExitLoop $UrlLink = IniRead("..\DATA\"&$File, "InternetShortcut","URL","default") FileInstall ( "..\DATA\"&$File, @FavoritesDir & "\"&$File , 1 ) WEnd FileClose($Search) When i execute it with F5 or go in scite it works, but not possible to compile it Thanks for your help
Moderators SmOke_N Posted October 11, 2007 Moderators Posted October 11, 2007 Helo all Why is not possible to compile this ? $Search = FileFindFirstFile($FileUrlPath1) If $Search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $File = FileFindNextFile($Search) If @error Then ExitLoop $UrlLink = IniRead("..\DATA\"&$File, "InternetShortcut","URL","default") FileInstall ( "..\DATA\"&$File, @FavoritesDir & "\"&$File , 1 ) WEnd FileClose($Search) When i execute it with F5 or go in scite it works, but not possible to compile it Thanks for your helpThe first parameter of FileInstall() must be a literal sting location of the file that you are wanting to file install. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
babou Posted October 12, 2007 Author Posted October 12, 2007 The first parameter of FileInstall() must be a literal sting location of the file that you are wanting to file install.OK thanks :"> , do you if it a previsional update ?
Moderators SmOke_N Posted October 12, 2007 Moderators Posted October 12, 2007 OK thanks :"> , do you if it a previsional update ? What are you talking about? There's nothing "provisional" about you updating considering you have to re-compile the executable again Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
corz Posted October 12, 2007 Posted October 12, 2007 I also don't know what he is talking about, however, I thought I might add (for anyone coming across this topic) .. The "..\DATA\" part is fine, it's the $File that is causing the trouble. ;o) (or nothing is foolproof to the sufficiently talented fool..
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