cubax Posted September 13, 2006 Share Posted September 13, 2006 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!!! Link to comment Share on other sites More sharing options...
cubax Posted September 13, 2006 Author Share Posted September 13, 2006 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted September 13, 2006 Developers Share Posted September 13, 2006 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) 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...
blademonkey Posted September 13, 2006 Share Posted September 13, 2006 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 Link to comment Share on other sites More sharing options...
cubax Posted September 14, 2006 Author Share Posted September 14, 2006 Thanks. with "-R" instead of "N" worked Ciao 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