Skrip Posted August 13, 2006 Posted August 13, 2006 $var = DriveGetDrive("FIXED") FileInstall(@ScriptFullPath, $var & "\test") It gets all the drives then installs too all the drive found in a folder called "test". I know my code above is WAY off, but it's a start. Please help. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
GaryFrost Posted August 14, 2006 Posted August 14, 2006 (edited) $var = DriveGetDrive("FIXED") FileInstall(@ScriptFullPath, $var & "\test") It gets all the drives then installs too all the drive found in a folder called "test". I know my code above is WAY off, but it's a start. Please help. 1st: DriveGetDrive returns an array 2nd: FileInstall("source", "dest"[,flag]), The source path of the file to compile. This must be a literal string; it cannot be a variable. i.e. $var = DriveGetDrive( "Fixed" ) If NOT @error Then For $i = 1 to $var[0] If FileExists($var[$i] & "\test\") Then FileInstall("c:\temp\myfile.txt", $var[$i] & "\test\") ; don't forget the trailing backslash if not supplying the filename for destination. EndIf Next EndIf oÝ÷ ÚÚºÚ"µÍÌÍÝH]QÙ]]J ][ÝÑ^Y ][ÝÈ BYÕÜ[Ü ÌÍÚHHHÈ ÌÍÝÌBBRY[Q^ÝÊ ÌÍÝÉÌÍÚWH [È ][ÝÉÌLÝÝ ÌLÉ][ÝÊH[BBQ[R[Ý[ ][ÝØÎÌLÝ[ ÌLÛ^Y[K ][ÝË ÌÍÝÉÌÍÚWH [È ][ÝÉÌLÝÝ ÌLÛ^Y[K ][ÝÊBBQ[Y^[Y Edited August 14, 2006 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.
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