TiMa Posted November 15, 2005 Posted November 15, 2005 Don't know if anything I did wrong with FileInstall() function ???I Included a file that from Windows 2000 resource kit, netdom.exe in my script using this expressionFileInstall("netdom.exe",@ScriptDir,1)As my netdom.exe placed with the script file when compile, I copy the execute on C: then it can extract the netdom.exe for me, but if I place it in some directory say C:\Download, it can't extract the netdom.exe for me, I tried the syntax like this.$result=FileInstall("netdom.exe",@ScriptDir,1)MsgBox(0,$result,$result)And it print me a success return but with no file exist, how come ???
jpm Posted November 15, 2005 Posted November 15, 2005 Fileinstall act as a filecopy when not compiled. so the forcing to overwrite just destroy the file. It was a bug in filecopy I assume there is the same error in fileinstall. no ptroblem if you compile your script the file will be placed in the @scriptdir.
TiMa Posted November 15, 2005 Author Posted November 15, 2005 But the problem I encountered is, I compiled the script, when the @ScriprDir is C: it works, it fail whereever the destination it is, I've already checked the permissions and attribute is valid.
MHz Posted November 15, 2005 Posted November 15, 2005 Try using a trailing backslash on the destination as the helpfile mentions.
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