halocast Posted December 18, 2007 Share Posted December 18, 2007 (edited) Hi, i am very new to scripting with autoit. i am currently using Autoit v3 stable version to script I got a problem that i hope u guys can help me with i have written this line of code ----------------------------------- Dircreate("C:\EA Licences") sleep(50) filecopy("X:\install\Enterprise Architect - Corporate Floating Edition\CD\EA Licenses\sskeys", "C:\EA Licenses", 1) sleep(150) ---------------------------------- Basically what i want to do is i create a folder called "EA Licenses" in my C:\ Then copy the file from my mapped drive to this folder. However only the CREATE part works. The file doesn't get copied over. am i doing something wrong here? Edited December 18, 2007 by halocast Link to comment Share on other sites More sharing options...
smashly Posted December 18, 2007 Share Posted December 18, 2007 (edited) Is "sskeys" a directory or a file without an extension? I'll assume it's a directory containinng your .dat fileFileCopy("X:\install\Enterprise Architect - Corporate Floating Edition\CD\EA Licenses\sskeys\*.dat", "C:\EA Licenses\sskeys\", 9) By using "9" ( 1 + 8) instead of "1" for the last parameter will create destination directory if doesn't already exist and will also overwrite any existing file if it does already exist. Cheers Edited December 18, 2007 by smashly Link to comment Share on other sites More sharing options...
halocast Posted December 18, 2007 Author Share Posted December 18, 2007 Is "sskeys" a directory or a file without an extension? I'll assume it's a directory containinng your .dat fileFileCopy("X:\install\Enterprise Architect - Corporate Floating Edition\CD\EA Licenses\sskeys\*.dat", "C:\EA Licenses\sskeys\", 9) By using "9" ( 1 + 8) instead of "1" for the last parameter will create destination directory if doesn't already exist and will also overwrite any existing file if it does already exist. Cheers sorry forgot to mention sskey is the file i want to copy over it is "sskeys.dat" file i can't seem to copy this over to my C:\EA Licenses folder that i have create with the script Link to comment Share on other sites More sharing options...
smashly Posted December 18, 2007 Share Posted December 18, 2007 Hi again FileCopy("X:\install\Enterprise Architect - Corporate Floating Edition\CD\EA Licenses\sskeys.dat", "C:\EA Licenses\", 9) Cheers Link to comment Share on other sites More sharing options...
halocast Posted December 18, 2007 Author Share Posted December 18, 2007 Hi again FileCopy("X:\install\Enterprise Architect - Corporate Floating Edition\CD\EA Licenses\sskeys.dat", "C:\EA Licenses\", 9) Cheers This doesn't work still It somehow doesn't copy. it only copies over the folder itself Link to comment Share on other sites More sharing options...
halocast Posted December 18, 2007 Author Share Posted December 18, 2007 This doesn't work stillIt somehow doesn't copy. it only copies over the folder itselfok it works now. but with slight error stillthanks all! its because of a slight keyword error Link to comment Share on other sites More sharing options...
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