Jump to content

fileinstall ?


babou
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

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

Link to comment
Share on other sites

  • Moderators

OK thanks :"> , do you if it a previsional update ? :P

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.

Link to comment
Share on other sites

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

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