C CD Tom Member Licensed User Longtime User Jan 16, 2013 #1 I downloaded the ABZipUnzip libs and saved them to my additional library. When I started my program I select Libs and select the ABZipUnZip library. When I try and follow the examples to unzip a file I start with the "Dim myzip as" but the dropdown list doesn't have the ABZipUnzip as an option and they just stay red. What am I missing.
I downloaded the ABZipUnzip libs and saved them to my additional library. When I started my program I select Libs and select the ABZipUnZip library. When I try and follow the examples to unzip a file I start with the "Dim myzip as" but the dropdown list doesn't have the ABZipUnzip as an option and they just stay red. What am I missing.
pluton Active Member Licensed User Longtime User Jan 16, 2013 #2 Look at this post NJDude said: There's a new library to handle file compression, check the Archiver lib. Click to expand... Upvote 0
Look at this post NJDude said: There's a new library to handle file compression, check the Archiver lib. Click to expand...
C CD Tom Member Licensed User Longtime User Jan 16, 2013 #3 That worked fine except for one little thing. I check to see if the zip file exists and if so I want to unzip the file to a specific directory. my code is Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.UnZip(File.DirRootExternal, "download/TPhotos.zip", File.DirRootExternal, "/tcgcphotos/") End If It unzips the file but the file just go into the DirRootExternal directory. I've tried different option with the destination filder like Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.UnZip(File.DirRootExternal, "download/TPhotos.zip", File.DirRootExternal & "/tcgcphotos/") End If but that gives me an error when compiling. Is there a way to put these file in a specific directory and if not can I move then into the other directory? I don't seem to find a move command I do find the copy and I suppose I could copy then and then delete them. In the copy command can you use the * as a wild card like *.jpg Upvote 0
That worked fine except for one little thing. I check to see if the zip file exists and if so I want to unzip the file to a specific directory. my code is Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.UnZip(File.DirRootExternal, "download/TPhotos.zip", File.DirRootExternal, "/tcgcphotos/") End If It unzips the file but the file just go into the DirRootExternal directory. I've tried different option with the destination filder like Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.UnZip(File.DirRootExternal, "download/TPhotos.zip", File.DirRootExternal & "/tcgcphotos/") End If but that gives me an error when compiling. Is there a way to put these file in a specific directory and if not can I move then into the other directory? I don't seem to find a move command I do find the copy and I suppose I could copy then and then delete them. In the copy command can you use the * as a wild card like *.jpg
M Mahares Expert Licensed User Longtime User Jan 17, 2013 #4 This is the correct code: Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.Unzip(File.DirRootExternal & "/download","TPhotos.zip",File.DirRootExternal & "/download","") End If You are really making tremendous progress. Some day, you will be helping us all too. Upvote 0
This is the correct code: Code: Copy If File.Exists(File.DirRootExternal,"download/TPhotos.zip") = True Then Arc.Unzip(File.DirRootExternal & "/download","TPhotos.zip",File.DirRootExternal & "/download","") End If You are really making tremendous progress. Some day, you will be helping us all too.
C CD Tom Member Licensed User Longtime User Jan 17, 2013 #5 Thank you, right now someday seems like a long ways off. Upvote 0