Jump to content

Recommended Posts

Posted (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 by hiho
Posted (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 by hiho
Posted

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)

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Posted (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 by hiho
Posted

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.

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...