Jump to content

FileInstall fails


Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...