billym Posted October 4, 2005 Posted October 4, 2005 How do I FileInstall the same file to multiple locations. Will autoit compile the same file into the exe multiple times(increasing the size of the exe) for each different path I want to extract it to? I am trying to find a way to include the file once but extract it to multiple locations as needed. Is this possible?
Developers Jos Posted October 4, 2005 Developers Posted October 4, 2005 How do I FileInstall the same file to multiple locations. Will autoit compile the same file into the exe multiple times(increasing the size of the exe) for each different path I want to extract it to? I am trying to find a way to include the file once but extract it to multiple locations as needed. Is this possible?Fileinstall("xyz","firstlocation",1)FileCopy("firstlocation","Secondlocation",1)etc... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
billym Posted October 4, 2005 Author Posted October 4, 2005 Fileinstall("xyz","firstlocation",1)FileCopy("firstlocation","Secondlocation",1)etc...Sorry, let me provide more detail...ex.Select @OSBuild Case "950" ; Windows 95 OEM Retail Fileinstall("xyz.dll","location1",1) Case "950A"; Windows 95 Retail SP1 Fileinstall("xyz.dll","location2",1) Case "1111"; Windows 95 OEM Service Release 2 Fileinstall("xyz.dll","location3",1) Case "1212"; Windows 95 OEM Service Release 2.1 Fileinstall("xyz.dll","location4",1) Case "1214"; Windows 95 OEM Service Release 2.5 Fileinstall("xyz.dll","location5",1) Case ElseEndSelect
B3TA_SCR1PT3R Posted October 5, 2005 Posted October 5, 2005 Sorry, let me provide more detail...ex.Select @OSBuild Case "950" ; Windows 95 OEM Retail Fileinstall("xyz.dll","location1",1) Case "950A"; Windows 95 Retail SP1 Fileinstall("xyz.dll","location2",1) Case "1111"; Windows 95 OEM Service Release 2 Fileinstall("xyz.dll","location3",1) Case "1212"; Windows 95 OEM Service Release 2.1 Fileinstall("xyz.dll","location4",1) Case "1214"; Windows 95 OEM Service Release 2.5 Fileinstall("xyz.dll","location5",1) Case ElseEndSelectreplce location* with the actual location? [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]
Danny35d Posted October 5, 2005 Posted October 5, 2005 (edited) How do I FileInstall the same file to multiple locations. Will autoit compile the same file into the exe multiple times(increasing the size of the exe) for each different path I want to extract it to? I am trying to find a way to include the file once but extract it to multiple locations as needed. Is this possible?Fileinstall("xyz","firstlocation",1)FileCopy("firstlocation","Secondlocation",1)etc...Fileinstall("xyz.dll", @TempDir & "\xyz.dll", 1)Select @OSBuildCase "950" ; Windows 95 OEM RetailFileCopy(@TempDir & "\xyz.dll", "location1", 1)Case "950A"; Windows 95 Retail SP1FileCopy(@TempDir & "\xyz.dll", "location2", 1)Case "1111"; Windows 95 OEM Service Release 2FileCopy(@TempDir & "\xyz.dll", "location3", 1)Case "1212"; Windows 95 OEM Service Release 2.1FileCopy(@TempDir & "\xyz.dll", "location4", 1)Case "1214"; Windows 95 OEM Service Release 2.5FileCopy(@TempDir & "\xyz.dll", "location5", 1)Case ElseEndSelectHope this will help you.... Edited October 5, 2005 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
MHz Posted October 5, 2005 Posted October 5, 2005 Sorry, let me provide more detail...ex.Select @OSBuild Case "950" ; Windows 95 OEM Retail Fileinstall("xyz.dll","location1",1) Case "950A"; Windows 95 Retail SP1 Fileinstall("xyz.dll","location2",1) Case "1111"; Windows 95 OEM Service Release 2 Fileinstall("xyz.dll","location3",1) Case "1212"; Windows 95 OEM Service Release 2.1 Fileinstall("xyz.dll","location4",1) Case "1214"; Windows 95 OEM Service Release 2.5 Fileinstall("xyz.dll","location5",1) Case ElseEndSelectLooks fine to me. Autoit does not seem include the same file twice.The 1st parameter needs to be a literal string(which can be the same file) and the 2nd parameter can be a variable. I have scripts with conditional statements similar to what you display using the same file, but they go to different paths.
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