Sign in to follow this  
Followers 0
cubax

fileinstall not working on W2000

5 posts in this topic

Hello there!

I created a patch with autoit.

The script copies the content of a CD-ROM on the HD and when finished, using the FileInstall function,

it replaces 2 files.

It works perfectly on W XP but not on W 2000 where it seems that the 2 original files are not sobstituted.

Checking on files properties, I see that, once copied them from CD to HD, on W 2000 the 2 original ones are "read only".

Can it be due to this?

This is the way I do it:

FileInstall("main.phpw",$dest & "\resources\Code\vlt\main.phpw",1)

FileInstall("activation.class.php",$dest & "\resources\Code\vlt\classes\activation.class.php",1)

Thanks a lot!!! :)

Share this post


Link to post
Share on other sites



seriously... just FileSetAttrib or FileDelete before the FileInstall.

Lar.

Yes... That's what I just tried:

FileSetAttrib($dest & "\resources\Code\vlt\main.phpw", "N")

FileSetAttrib($dest & "\resources\Code\vlt\classes\activation.class.php", "N")

FileInstall("main.phpw",$dest & "\resources\Code\vlt\main.phpw",1)

FileInstall("activation.class.php",$dest & "\resources\Code\vlt\classes\activation.class.php",1)

But it does not work...

Am I doing smtg wrong?

Thanks :)

Share this post


Link to post
Share on other sites

Try:

FileSetAttrib($dest & "\resources\Code\vlt\main.phpw", "-R")
FileSetAttrib($dest & "\resources\Code\vlt\classes\activation.class.php", "-R")
FileInstall("main.phpw",$dest & "\resources\Code\vlt\main.phpw",1)
FileInstall("activation.class.php",$dest & "\resources\Code\vlt\classes\activation.class.php",1)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Try:

FileSetAttrib($dest & "\resources\Code\vlt\main.phpw", "-R")
FileSetAttrib($dest & "\resources\Code\vlt\classes\activation.class.php", "-R")
FileInstall("main.phpw",$dest & "\resources\Code\vlt\main.phpw",1)
FileInstall("activation.class.php",$dest & "\resources\Code\vlt\classes\activation.class.php",1)
Are the files currently being used when you try to overwrite them?

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

Thanks. with "-R" instead of "N" worked :)

Ciao

Share this post


Link to post
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
Sign in to follow this  
Followers 0