hiho Posted July 11, 2013 Author Share Posted July 11, 2013 (edited) Even if I do compile and run $p2 = "E:\Programs\Counter Strike 1.6 Lite\cstrike" FileInstall("E:\Programs\New folder\cstrike\resource\background\800_1_a_loading.tga", $p2 & "\resource\background\800_1_a_loading.tga", 1) the file doesn't doesn't copy at the destination. Edited July 11, 2013 by hiho Link to comment Share on other sites More sharing options...
Developers Jos Posted July 11, 2013 Developers Share Posted July 11, 2013 You have already made that point clear but have you understood and tested with any of the other suggestions? 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. Link to comment Share on other sites More sharing options...
hiho Posted July 11, 2013 Author Share Posted July 11, 2013 (edited) Yes, I understood the first paragraph of your post. Running/compiling $p2 = "E:\Programs\Counter Strike 1.6 Lite\cstrike" ;~ FileInstall("E:\Programs\New folder\cstrike\resource\background\800_1_a_loading.tga", $p2 & "\resource\background\800_1_a_loading.tga", 1) FileCopy("E:\Programs\New folder\cstrike\resource\background\800_1_a_loading.tga", $p2 & "\resource\background\800_1_a_loading.tga", 1) if @error Then MsgBox(0, "", @error) doesn't return error (or messagebox), but still doesn't copy the file. About the second paragraph - running $p2 = "E:\Programs\Counter Strike 1.6 Lite\cstrike" ;~ FileInstall("E:\Programs\New folder\cstrike\resource\background\800_1_a_loading.tga", $p2 & "\resource\background\800_1_a_loading.tga", 1) FileCopy("E:\Programs\New folder\cstrike\resource\background\800_1_a_loading.tga", $p2 & "\resource\background\", 1) if @error Then MsgBox(0, "", @error) does the exact samething - file named "background" with the same content. So in this case we can say that FileCopy works. Edited July 11, 2013 by hiho Link to comment Share on other sites More sharing options...
iamtheky Posted July 11, 2013 Share Posted July 11, 2013 if you make a "test.txt" in your source folder, does that install to the destination as expected with literal strings? FileInstall("E:\Programs\New folder\cstrike\resource\background\test.txt", "E:\Programs\Counter Strike 1.6 Lite\cstrike\resource\background\test.txt", 1) ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
hiho Posted July 11, 2013 Author Share Posted July 11, 2013 (edited) No, neither filecopy (compiled or not). Edited July 11, 2013 by hiho Link to comment Share on other sites More sharing options...
hiho Posted July 12, 2013 Author Share Posted July 12, 2013 (edited) Running Unhide and Microsoft's Fix it solved it. Guess it was a problem with my settings my external drive's settings. Thank you all for the support. Edited July 12, 2013 by hiho Link to comment Share on other sites More sharing options...
0xdefea7 Posted July 12, 2013 Share Posted July 12, 2013 Maybe use FileGetAttrib/FileSetAttrib in your script so so that you can avoid that in the future. Check folder attributes before trying to copy and change them accordingly before running the copy or fileinstall operation. 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