TiMa Posted November 15, 2005 Share 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 ??? Link to comment Share on other sites More sharing options...
jpm Posted November 15, 2005 Share 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. Link to comment Share on other sites More sharing options...
TiMa Posted November 15, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
MHz Posted November 15, 2005 Share Posted November 15, 2005 Try using a trailing backslash on the destination as the helpfile mentions. 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