Jump to content
Sign in to follow this  
babou

fileinstall ?

Recommended Posts

babou

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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
babou

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 ? :)

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
corz

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.