topten Posted October 19, 2015 Posted October 19, 2015 I have a vbscript code which is extracting a file from zipped archiveZipFile5="c:\file.zip" ExtractTo5="c:\folder" set objShell5 = CreateObject("Shell.Application") set FilesInZip5=objShell5.NameSpace(ZipFile5).items objShell5.NameSpace(ExtractTo5).CopyHere(FilesInZip5),&H4 Set objShell5 = NothingI have written an autoit wrapper for that $ZipFile5="C:\file.zip" $ExtractTo5="C:\folder" $objShell5 = ObjCreate ("Shell.Application") $FilesInZip5=$objShell5.NameSpace($ZipFile5).items $objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5),&H4It works fine if I dont use ",&H4" (option to unzip without progress bar)When I add ,&H4 - I get an error ==> Illegal text at the end of statement (one statement per line).: $objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5),&H4 $objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5)^ ERRORHow can I use (wrap into autoit) ,&H4 option?
Danyfirex Posted October 19, 2015 Posted October 19, 2015 (edited) I autoit Long type is not with &h You must set 0x4 Saludos Edited October 19, 2015 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
topten Posted October 19, 2015 Author Posted October 19, 2015 Danyfirex , Do you mean something like this: $objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5) & 0x4 ; This way didnt work
Danyfirex Posted October 19, 2015 Posted October 19, 2015 I meant this:$objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5), 0x4 ; This way didnt workSaludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
topten Posted October 19, 2015 Author Posted October 19, 2015 This is the correct solution:$objShell5.NameSpace($ExtractTo5).CopyHere($FilesInZip5, 0x4)
Danyfirex Posted October 19, 2015 Posted October 19, 2015 Good. I just noticed the &h4 part. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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