Zip Folder
From UBot Studio
(Difference between revisions)
Line 2: | Line 2: | ||
This function is a [[Compression]] function in the UBot Extended Library. This function creates a zip file from a folder. | This function is a [[Compression]] function in the UBot Extended Library. This function creates a zip file from a folder. | ||
− | '''Folder:''' The folder with the contents being zipped, complete with the folder path. | + | '''Folder:''' The folder with the contents being zipped, complete with the folder path. (C:\\Users\\Downloads\\Stuff) |
− | '''File Name:''' The name of the resulting zipped file. Please be sure to include the entire file path and the .zip extension on the file name. | + | '''File Name:''' The name of the resulting zipped file. Please be sure to include the entire file path and the .zip extension on the file name. (C:\\Users\\Downloads\\Stuff.zip) |
== Example == | == Example == |
Revision as of 18:48, 24 June 2015
This function is a Compression function in the UBot Extended Library. This function creates a zip file from a folder.
Folder: The folder with the contents being zipped, complete with the folder path. (C:\\Users\\Downloads\\Stuff)
File Name: The name of the resulting zipped file. Please be sure to include the entire file path and the .zip extension on the file name. (C:\\Users\\Downloads\\Stuff.zip)
Example
zip folder("C:\\Users\\Downloads\\Stuff","C:\\Users\\Downloads\\Stuff.zip")
The specified folder is zipped and placed in the appropriate location.
Notice that the folder was zipped into the same location the folder "Stuff" is located in, which is the download folder.
It was Not zipped into the folder "Stuff". Avoid attempting to zip a folder into itself.