Azureus Posted July 18, 2015 Share Posted July 18, 2015 #include <File.au3> _FileCreate ( @ScriptDir & "\hello" & ".rar" ) Then when I open the rar it just says that it's corrupt (http://prntscr.com/7u6szg)Why? Link to comment Share on other sites More sharing options...
SadBunny Posted July 18, 2015 Share Posted July 18, 2015 (edited) Because it's not a rar archive, it's an empty file that just happens to have .rar as a file extension.Imagine Jimmy giving you an envelope and tells you it contains an apple pie recipe. So you go in the kitchen, take out the paper and look at the paper expecting a list of ingredients and instructions, but instead it's a blank piece of paper. So you go back to Jimmy and tell him "you said this was an apple pie recipe, but when I tried to use it as an apple pie recipe, it turned out the paper was blank. This is not an apple pie recipe, even though you told me it was." Edited July 18, 2015 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Azureus Posted July 18, 2015 Author Share Posted July 18, 2015 Because it's not a rar archive, it's an empty file that just happens to have .rar as a file extension.Imagine Jimmy giving you an envelope and tells you it contains an apple pie recipe. So you go in the kitchen, take out the paper and look at the paper expecting a list of ingredients and instructions, but instead it's a blank piece of paper. So you go back to Jimmy and tell him "you said this was an apple pie recipe, but when I tried to use it as an apple pie recipe, it turned out the paper was blank. This is not an apple pie recipe, even though you told me it was."So, how would I go about creating a proper archive then, with AutoIT3? Link to comment Share on other sites More sharing options...
JohnOne Posted July 18, 2015 Share Posted July 18, 2015 search for a zip UDF would be my first stip. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
SadBunny Posted July 18, 2015 Share Posted July 18, 2015 (edited) Another option is to directly execute the executable of your favorite zip tool with the necessary commandline arguments. Winzip, winrar and 7zip (and probably most other serious tools as well) support commandline usage. Edited July 18, 2015 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. 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