Innovative Posted October 15, 2007 Share Posted October 15, 2007 Hello all, I have some problems with the script I wanted to have Run("Program name") But the program is inside an RAR file.. It just cant find the file inside the rar.. How can i make it works without extratcting the file out? THank you , CrazeStar1074 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 15, 2007 Developers Share Posted October 15, 2007 doubt that you can...... the system will always need to extract it first to be able to run the program ... 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...
ValeryVal Posted October 15, 2007 Share Posted October 15, 2007 It's impossible in common case, I think. You should extract file (maybe as temporary one) and after then launch it. One note to consider this conclusion: Any executive started is blocked by Windows, so you can't delete it before it's ending. If I'm wrong then any remarks will be appreciated. The point of world view Link to comment Share on other sites More sharing options...
ValeryVal Posted October 15, 2007 Share Posted October 15, 2007 However some languages use it's scripts directly from archives/URL/RAM/... ie autoit/java/php/cgi/... The point of world view Link to comment Share on other sites More sharing options...
Innovative Posted October 15, 2007 Author Share Posted October 15, 2007 Is there a script to auto-extract the file from the RAR ? Link to comment Share on other sites More sharing options...
wolf9228 Posted October 15, 2007 Share Posted October 15, 2007 (edited) Is there a script to auto-extract the file from the RAR ? $ScriptDir = @ScriptDir $dirFileRaR = @ScriptDir & "\dirFileRaR\" $temp = @ScriptDir & "\temp" $file = "file.rar " $command = $ScriptDir & "\rar.exe E " & $dirFileRaR & $file & $temp Run(@ComSpec & " /c " & $command, "", @SW_HIDE) Edited October 15, 2007 by wolf9228 صرح السماء كان هنا 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