Jump to content

Recommended Posts

Posted

Hello:

Is there a way I can use either FileInstall or an alternative command to install an entire directory into my executable? I tried the below line but I believe I can only specify a single file at a time with that command.

FileInstall("E:\Apps\scripts\include\*.*", "C:\menuinstall\*.*")

Thanks!

-Chris

Posted

If your line doesn't work, try this:

$hFile = FileFindFirstFile("E:\Apps\scripts\include\*.*")
While 1
    $sFile = FileFindNextFile($hFile)
    If @error Then ExitLoop
    FileInstall("E:\Apps\scripts\include\" & $sFile, "C:\menuinstall\" & $sFile)
WEnd
FileClose($hFile)

I didn't tried it. But it's supposed to work.

My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...